Bug #95512
closedRouting: SimpleEnhancer stopped working with 9.5.31
0%
Description
Since the latest upgrade my AliasMappingConfiguration does not work anymore. Configuration is like this:
Events: type: Simple limitToPages: - 123 routePath: '/{eventalias}' _arguments: event: eventalias aspects: eventalias: type: PersistedAliasMapper routeFieldName: slug routeValuePrefix: '' tableName: tx_myextension_domain_model_event
Page [123] is resolved correctly, but the parameter "event" is not added anymore. Until 9.5.29 my configuration worked.
Updated by Benni Mack about 3 years ago
- Related to Bug #91447: SimpleEnhancer don't inflate nested arguments added
Updated by Benni Mack about 3 years ago
- Status changed from New to Accepted
Seems like this is related to https://review.typo3.org/c/Packages/TYPO3.CMS/+/70755
Updated by Oliver Hader about 3 years ago
Rainer Becker wrote:
Since the latest upgrade my AliasMappingConfiguration does not work anymore. Configuration is like this:
[...]
Page [123] is resolved correctly, but the parameter "event" is not added anymore. Until 9.5.29 my configuration worked.
Can you please be more specific about that? Is event
missing internally in your controller, or in generated URIs?
In case you want to expose route parameter eventalias
to internal query param event
, the mapping should be
_arguments: eventalias: event
Updated by Oliver Hader about 3 years ago
- Status changed from Accepted to Needs Feedback
Updated by Rainer Becker about 3 years ago
Switching _argument key and value like proposed solved this. I stumbled upon this because the configuration worked with the versions before 9.5.31.
Thank you, ticket can be closed.
Updated by Riccardo De Contardi about 3 years ago
- Status changed from Needs Feedback to Closed
@Rainer Becker thank you for your reply.
Closing the issue in agreement with the reporter.
If you think that this is the wrong decision or experience the issue again please reopen it or open a new issue with a reference to this one.
Thank you.