Issue Bug Closed

#87656Slugs error if title has "/" in extbase extension

Martin Weymayer 02/05/19, 12:49 updated 02/05/19, 13:45

Description

If you have a title in an extension like “Mein Titel hat / Slash / im Titel” TYPO3 occures error

(1/1) Symfony\Component\Routing\Exception\InvalidParameterException

Parameter "tx_xxx_xxx__frage" for route "tx_xxx_xxx_0" must match "[^/]++" ("mein-titel-hat-/-slash-/-im-titel" given) to generate a corresponding URL.

Here is my TCA for slug

'path_segment' => [
            'exclude' => true,
            'label' => 'URL Segment',
            'config' => [
                'type' => 'slug',
                'prependSlash' => true,
                'generatorOptions' => [
                    'fields' => ['frage'],
                    'prefixParentPageSlug' => false,
                ],
                'fallbackCharacter' => '-',
                'eval' => 'uniqueInSite',
            ],
        ],

So “/” in url should be deleted automatically

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.