Project

General

Profile

Actions

Bug #93578

closed

getPagesOverlay in Page Repository ignores language specific fallback

Added by David Hedden about 3 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2021-02-24
Due date:
% Done:

0%

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

Description

getPagesOverlay calls the function to get the language fallback chain with null as argument.
This will than return the current fallback chain, and not the appropriate for that language.
https://github.com/TYPO3/TYPO3.CMS/blob/298c3d4c400702c893bbe58503635cd2d905e340/typo3/sysext/frontend/Classes/Page/PageRepository.php#L562

An example to test this behavior is creating a language menu, the resulting available status is different depending on the current language.

Language Fallback Page is translated Expected status From default From de-ch
default Y Y Y Y
de Y Y Y Y
de-ch de X Y X Y
en X X X Y

Getting the fallback chain from the site entity in the request for that language fixes the issue.
But it depends on the request being correct, so fetching a page from another page tree would result in a wrong configuration.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #98303: Use PSR-14 Events in PageRepository for getLanguageOverlay functionalityClosedBenni Mack2022-09-08

Actions
Actions

Also available in: Atom PDF