#110501pages slug should have replacement config for /
Description
'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
-
Georg Ringer commented and changed status
NewAccepted 08/19/26, 21:08 -
Gerrit Code Review pushed patch set 1 for main to change 95414 status
AcceptedUnder Review 08/25/26, 14:29 -
Gerrit Code Review pushed patch set 2 for main to change 95414 08/25/26, 14:30
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % 09/02/26, 14:40Applied in changeset commit:b754028f4b9193e0142f184ed84816cbdd15f5d4.
wanna push a change to main including an important rst to explain the change?