Issue Bug Resolved

#110501pages slug should have replacement config for /

Andreas Kießling 08/19/26, 11:05 updated 09/02/26, 14:40

Description

https://github.com/TYPO3/typo3/blob/3cbdea24dd68c9120aaa9a082a3ad52378033295/typo3/sysext/core/Configuration/TCA/pages.php#L134

        'slug' => [
            'label' => 'core.db.pages:slug',
            'config' => [
                'type' => 'slug',
                'size' => 50,
                'generatorOptions' => [
                    'fields' => ['title'],
                    'fieldSeparator' => '/',
                    'prefixParentPageSlug' => true,
                ],
                'fallbackCharacter' => '-',
                'eval' => 'uniqueInSite',
                'default' => '',
            ],
        ],

Is there a reason why we should not configure a default replacement for / to – ?
My client set a page title like “foo / bar” which ended up in a segment “foo-/-bar”, which should have been just “foo-bar”

News and a lot of other extensions are configured like this
https://github.com/georgringer/news/blob/805d535a9c46a2de9929d61847213872923812b3/Configuration/TCA/tx_news_domain_model_news.php#L459

Encountered in Version 13, but still present in main

Reviews 1

History 24

  1. Georg Ringer commented and changed status New Accepted 08/19/26, 21:08

    wanna push a change to main including an important rst to explain the change?

  2. Gerrit Code Review pushed patch set 1 for main to change 95414 status Accepted Under Review 08/25/26, 14:29

  3. Gerrit Code Review pushed patch set 2 for main to change 95414 08/25/26, 14:30

  4. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 09/02/26, 14:40

    Applied in changeset commit:b754028f4b9193e0142f184ed84816cbdd15f5d4.