Issue Bug Resolved

#106438Mount pages not working with identical slug and slash as PageTypeSuffix

Sven Burkert 03/26/25, 12:48 updated 10/25/26, 11:55

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

  1. Sven Burkert commented <span data-processor="relativetime" data-value="2025-03-26T12:56:39+00:00" > 03/26/25, 12:56 </span>

    Sorry – it is more important the slug is identical for page “mount point”.

  2. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 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.