Issue Bug Resolved

#101931Extbase RouteEnhancers do not work in case of language fallback to non-default language.

Mamoun Al Smaiel 09/15/23, 20:08 updated 10/18/26, 14:35

Description

I have a TYPO3 instance with a language fallback
The default language is German(id=0) and the Italian language(id=8) is configured as a fallback to English(id=1).

English news items are displayed in Italian as a fallback, but the speaking URL for the detail view contains only the news id instead of the speaking URL path segment of the English news item.

Reviews 4

History 46

  1. Alexander Schnitzler commented <span data-processor="relativetime" data-value="2026-10-17T14:12:36+00:00" > 10/17/26, 14:12 </span>

    I think this is resolved on main.

    PersistedAliasMapper resolves the translated record through @PageRepository::getLanguageOverlay()@. Since c1701b21d5a “[BUGFIX] Respect language fallback chain for record overlay” (83169, #95013, #105907) that overlay follows the language fallback chain of the site. The fix is part of 14.0.0; on 13.4 it was merged as 3d695ad3179 (88828) and released with 13.4.9. With it, a link to a record whose translation exists only in a fallback language uses that translation’s slug instead of the uid. Extbase and Plugin route enhancers behave the same here, since both use the aspect.

    The fix came without a routing test. 96789 adds PersistedAliasMapperLanguageFallbackTest for a site with a fallback chain of two languages and proves the scenario from this issue:

    • generateUriForDefaultLanguageRecordUsesSlugOfTranslationInFallbackLanguage
    • generateUriForRecordExistingOnlyInFallbackLanguageUsesItsSlug
    • generateUriForRecordExistingOnlyInFallbackLanguageUsesItsSlugInThatLanguage
    • resolveFindsRecordExistingOnlyInFallbackLanguage
    • pluginEnhancerForDefaultLanguageRecordUsesSlugOfTranslationInFallbackLanguage
    • pluginEnhancerForRecordExistingOnlyInFallbackLanguageUsesItsSlug

    The earlier change 81035 for 11.5 is abandoned and no longer needed. Once 96789 is merged, this issue can be closed.

  2. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-18T14:35:15+00:00" > 10/18/26, 14:35 </span>

    Applied in changeset commit:212b7ffc2403c3873ee4a7c1c6d6bc208f137023.