#106438Mount pages not working with identical slug and slash as PageTypeSuffix
Description
To reproduce this error, please add at least one alternative language (e.g. en_GB), with fallbackType: fallback and fallbacks: '0'.
Then please create this page structure:
root page |- page "example page", translate to en_GB, with same slug as default language |- page "mount point", mount point target to page "example page", also translate to en_GB,
Please add this site configuration:
routeEnhancers:
PageTypeSuffix:
type: PageType
default: '/'
index: ''
map:
/: 0
Now open page “mount point” (e.g. with preview from BE). Default language is working, language “en_GB” not, there’s 404 error page.
I’ve debugged this and came to this result:
Problem is in TYPO3\CMS\Core\Routing\PageRouter: Both page records with sys_language_uid 0 and 1 (=en_GB) are considered as candidate, but candidate with sys_language_uid=0 overwrites found “TYPO3\CMS\Core\Routing\Route” for sys_language_uid=1 in $fullCollection.
It is working when there’s no slash appended, because then, we have a 100% match of slug and requested url and only one candidate is used in this case.
TYPO3 v11 and v12 also affected by this bug.
Reviews 2
History 24
-
Gerrit Code Review pushed patch set 1 for main to change 97114 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-24T20:53:05+00:00" > 10/24/26, 20:53 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 97136 <span data-processor="relativetime" data-value="2026-10-25T11:50:21+00:00" > 10/25/26, 11:50 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-25T11:55:12+00:00" > 10/25/26, 11:55 </span>Applied in changeset commit:9371a6c643e1e9929ee55513bbc0d81ba6758705.
Sorry – it is more important the slug is identical for page “mount point”.