Issue Bug Closed

#86740Using slash in slug in extension record throws exception in frontend

Chris Müller 10/25/18, 09:40 updated 05/07/19, 12:15

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:

slug.png

Calling the frontend list page of the extension, I got an exception:

exception.png

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.

Reviews 1