Bug #91875

Creating new siteroots in a folder (pid NOT 0) generates wrong and not fixable slugs

Added by Stefan P 18 days ago. Updated 16 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-07-27
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Have a sysfolder, containing siteroots. Add a new page in there. The SlugHelper generates a slug different from "/" (because it's neither on pid=0 nor an actual Site yet), but due to PseudoSiteTcaDisplayCondition this slug is not editable (it returns false when not being on pid=0 for whatever reason).

All subpages of this page will have this wrong slug prepended.

You need to create the page first before creating the site yaml because you need the uid for the rootPageId.

In a several-hundreds-domain setup, organised in logical folders, where siteroots are added on a daily base (also by non-developer backend-admins, the devs only add all the domain config only once the page tree "is ready") - imagine what a mess this creates which is only fixable with raw database Access by hand.

(regression, because in v8 one could create siteroot pages without problems)

History

#1 Updated by Stefan P 18 days ago

Even when the yaml file is there, if the siteroot is not on pid=0 the slug field is not displayed by the displayCond.

#2 Updated by Stefan P 16 days ago

  • Category set to Link Handling, Site Handling & Routing

Also available in: Atom PDF