Project

General

Profile

Actions

Bug #88486

open

Language fallback chain is lost with setting "Show Content from Page"

Added by Alexander Vogt almost 5 years ago. Updated 9 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-06-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

To reproduce:

Languages:
  • /de/ (Default)
  • /en/
  • /en-us/ (Fallback Type "strict", Fallback to other Languages: "EN")
Pages (All pages translated to "EN", Language Setting "Show page even if no translation exists" active):
  • Root
    • Page 1 [/page-1/, uid: 1, content_from_pid: 2]
    • Page 2 [/page-2/, uid: 2]

Frontend:
/en-us/page-1 -> Missing language fallback chain in LanguageAspect. As a result, the navigation is no longer displayed
/en-us/page-2 -> Works. The navigation in language EN is displayed.

https://github.com/TYPO3/TYPO3.CMS/blob/v9.5.7/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php#L1693
At this point the LanguageAspect will be ovewritten with a new LanguageAspect without fallback chain.

This modified LanguageAspect is used for menu generation (https://github.com/TYPO3/TYPO3.CMS/blob/v9.5.7/typo3/sysext/frontend/Classes/Page/PageRepository.php#L634).

Actions

Also available in: Atom PDF