Actions
Bug #86740
closedUsing slash in slug in extension record throws exception in frontend
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2018-10-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint
Description
I am using a slug TCA field in an extension record. The slug content is build from a title which can contains a slash (/). The slash is also took into the slug field:
Calling the frontend list page of the extension, I got an exception:
My TCA configuration is as follows:
'path_segment' => [ 'label' => 'Path segment', 'exclude' => true, 'config' => [ 'type' => 'slug', 'generatorOptions' => [ 'fields' => ['title'], 'fieldSeparator' => '/', 'prefixParentPageSlug' => false, ], 'fallbackCharacter' => '-', 'eval' => 'uniqueInPid', ], ],
As I understand from the manual (https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Slug.html) given the fieldSeparator, this character should be replaced by the fallbackCharacter.
Files
Actions