#111564Stop the language fallback chain at hidden page translations
Description
Since #111386, a translation of a record (for example a content element) that exists but is not visible (hidden, start time not reached, end time passed) stops the language fallback chain: the record is not shown, neither in another language of the chain nor in the default language. A translation that does not exist lets the chain continue.
Page translations do not follow this rule yet. The current state is documented in Feature-111386-IntroduceSiteLanguageOptionLanguageMode.rst (“Hidden page translations”) and pinned by ScenarioHTest:
- PageRepository::getPageOverlaysForLanguage() excludes hidden and scheduled page translations, so the fallback chain continues. Example: a page translated into language 1, translation hidden, fallbacks “0”: the page is rendered with the content of the default language.
- The slug of a hidden page translation still resolves. The page is then rendered in the language found along the fallback chain, under the URL of the hidden translation.
- Menus show the page in the language found along the chain, and links use the slug of that language.
Pages should follow the same rule as records: a page translation that exists but is not visible stops the fallback chain, the page results in “page not found” in that language, is not shown in menus and is not linked. Previews with hidden pages included (visibility aspect) keep showing the hidden translation.
Reviews 1
History 03
-
Gerrit Code Review pushed patch set 1 for main to change 97968 status
NewUnder Review 11/24/26, 18:25 -
Gerrit Code Review pushed patch set 2 for main to change 97968 11/26/26, 15:21
-
Gerrit Code Review pushed patch set 3 for main to change 97968 11/26/26, 15:38