#95133routeEnhancers routeFieldName gets mixed up with uid if it contains digits at the beginning of the phrase
Description
I conifgured a custom extension which creates a 6 digit random code. The code ist saved in the DB and used as a slug field for the dataset.
config.yaml
routeEnhancers:
Donation:
type: Extbase
extension: Package
plugin: Donation
routes:
-
routePath: ‘/{code}‘
_controller: ‘Donation::showForm’
_arguments:
battle-code: battleHero
defaultController: ‘Donation::showForm’
aspects:
code:
type: PersistedAliasMapper
tableName: fe_users
routeFieldName: battle_code
If the first digits of the code-field contain digits which match the uid of another dataset, this dataset is used in Links. I found no way to prevent this and think this is a nasty bug :)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.