Project

General

Profile

Actions

Bug #95133

closed

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

Added by Gregor Agnes about 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2021-09-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
routing
Complexity:
Is Regression:
Sprint Focus:

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 :)

Actions #1

Updated by Gregor Agnes about 3 years ago

  • Subject changed from routeEnhancers routeFieldName gets mixed up with uid if it contains digits in at the beginning of the phrase to routeEnhancers routeFieldName gets mixed up with uid if it contains digits at the beginning of the phrase
Actions #2

Updated by Gregor Agnes about 3 years ago

I found the problem: in the link viewhelper I have to pass the whole object, not only the code-(slug-) property.

Please delete this report or mark as resolved :)

Actions #3

Updated by Georg Ringer about 3 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF