#93578getPagesOverlay in Page Repository ignores language specific fallback
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.