Using slash in slug in extension record throws exception in frontend
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.