#110124Translated pages of type link always link to the original language
Description
I have a page of doktype 3 (“link”) with translations.
Default language value is example.com, German has example.de and French has example.fr.
The generated link in frontend (Menu and when using f.e. f:link.page) is always example.com and never the translation.
In frontend/Classes/Typolink/PageLinkBuilder.php line 222 there is
if ((int)$originalPage['doktype'] === PageRepository::DOKTYPE_LINK) {
which seems to be the right place to look.
In this part of the code I see a lot of $originalPage['link'] which is the default language (so links to example.com).
By changing this to $resolvedPage['link'] I get my expected translation (like example.de or example.fr).
The code was introduced by this commit which explains why it worked in v13: https://github.com/TYPO3/typo3/commit/784c72bf631650348ec2129eb2e16f3f46f9c8c8
One more scenario:
After the suggested change it does not work completely.
If the provided link goes to t3://page?uid=123#some-anchor the generated link is just example.com/path/to/site and not example.com/path/to/site#some-anchor
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 3
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2026-07-03T17:40:48+00:00" > 07/03/26, 17:40 </span>
-
Benni Mack changed Related to #110160 <span data-processor="relativetime" data-value="2026-11-13T08:58:58+00:00" > 11/13/26, 08:58 </span>
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-13T09:01:11+00:00" > 11/13/26, 09:01 </span>
Fixed with #110160