Issue Bug Closed

#91246routeEnhancer defaults not applied in TYPO3 v9.5.16

Stephan Großberndt 04/30/20, 16:56 updated 09/08/20, 11:43

Description

The defaults as defined in routeEnhancer are no longer applied in TYPO3 v9.5.16

With a configuration of:

  RoiDetail:
    type: Plugin
    limitToPages:
      - 123
      - 234
    routePath: '/{uid}/{title}/{detailType}'
    defaults:
      detailType: 'details'
    requirements:
      uid: '[0-9]{1,5}'
      title: '[a-zA-Z0-9\-]*'
      detailType: '^details|gpx|kml$'
    namespace: tx_extension_pi_roi_detail
    aspects:
      uid:
        type: MyUidMapper
      detailType:
        type: StaticValueMapper
        map:
          details: 'details'
          kml: 'kml'
          gpx: 'gpx'

a TYPO3 <= v9.5.15 installation creates URLs like
https://example.org/roi-details/1234/roi-title/details
(appending the default “details” as “/details” if not defined during link creation) and allowing to access
https://example.org/roi-details/1234/roi-title/gpx

a TYPO3 v9.5.16 installation creates URLs like
https://example.org/roi-details/1234/roi-title
(omitting the default “details” if not defined during link creation) and leads to 404 on accessing
https://example.org/roi-details/1234/roi-title/details
as well as
https://example.org/roi-details/1234/roi-title/gpx

Reviews 3