Project

General

Profile

Actions

Bug #91633

closed

9.5.19 breaks formerly working routeEnhancer

Added by Matthias Krappitz over 4 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Site Handling, Site Sets & Routing
Start date:
2020-06-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

I have the following routeEnhancer, which worked until 9.5.18:

  BookingPlugin:
    type: Extbase
    limitToPages:
      - 123
    extension: Events
    plugin: Events
    routes:
      -
        routePath: '/{event}/{date}/{booking}'
        _controller: 'Booking::new'
        _arguments:
          event: event
          date: date
          booking: booking
    defaultController: 'Booking::new'
    defaults:
      booking: ''
    aspects:
      event:
        type: PersistedAliasMapper
        tableName: tx_events_domain_model_event
        routeFieldName: slug
      date:
        type: PersistedAliasMapper
        tableName: tx_events_domain_model_date
        routeFieldName: slug
      booking:
        type: StaticValueMapper
        map:
          new: 1

It creates an url like /some-page/some-event/some-date/new/ with following linking:

<f:link.page pageUid="123" additionalParams="{tx_events_events : {event : event, date : date, booking : 1}}">register</f:link.page>

From 9.5.19 this route results in a 404 page not found error, before it was resolving fine. I guess it has to do with https://github.com/TYPO3-CMS/core/commit/d94f2004eb2158cacb4c2e5acb21d73ffdf49858

IMHO we should really stop introducing severe breaking changes (especially sufficient communication about it) in patch level releases of an LTS version. This happened now quite some times recently, espcially in the routing area, always resulting in heavy URL problems and breaking projects.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #91246: routeEnhancer defaults not applied in TYPO3 v9.5.16Closed

Actions
Related to TYPO3 Core - Bug #90531: Requirements are not considered when an aspect is presentClosed2020-02-25

Actions
Related to TYPO3 Core - Bug #91537: 9.5.15+ breaks routing: Only respects the shortest matching ruleClosed2020-05-29

Actions
Actions

Also available in: Atom PDF