Issue Bug Rejected

#95133routeEnhancers routeFieldName gets mixed up with uid if it contains digits at the beginning of the phrase

Gregor Agnes 09/07/21, 08:15 updated 09/09/21, 12:06

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.