#101931Extbase RouteEnhancers do not work in case of language fallback to non-default language.
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
-
Gerrit Code Review pushed patch set 1 for 11.5 to change 81035 status
NewUnder Review <span data-processor="relativetime" data-value="2023-09-17T20:41:16+00:00" > 09/17/23, 20:41 </span> -
Tymoteusz Motylewski changed removed the assignee <span data-processor="relativetime" data-value="2024-07-08T17:55:50+00:00" > 07/08/24, 17:55 </span>
-
Benni Mack changed status
Under ReviewNew <span data-processor="relativetime" data-value="2024-10-31T14:43:22+00:00" > 10/31/24, 14:43 </span> -
Gerrit Code Review pushed patch set 1 for main to change 96789 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-17T14:09:00+00:00" > 10/17/26, 14:09 </span> -
Alexander Schnitzler commented <span data-processor="relativetime" data-value="2026-10-17T14:12:36+00:00" > 10/17/26, 14:12 </span>
-
Anonymous commented and changed status
Under ReviewResolved done0 %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.
I think this is resolved on main.
PersistedAliasMapperresolves 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
PersistedAliasMapperLanguageFallbackTestfor a site with a fallback chain of two languages and proves the scenario from this issue:generateUriForDefaultLanguageRecordUsesSlugOfTranslationInFallbackLanguagegenerateUriForRecordExistingOnlyInFallbackLanguageUsesItsSluggenerateUriForRecordExistingOnlyInFallbackLanguageUsesItsSlugInThatLanguageresolveFindsRecordExistingOnlyInFallbackLanguagepluginEnhancerForDefaultLanguageRecordUsesSlugOfTranslationInFallbackLanguagepluginEnhancerForRecordExistingOnlyInFallbackLanguageUsesItsSlugThe earlier change 81035 for 11.5 is abandoned and no longer needed. Once 96789 is merged, this issue can be closed.