Issue Bug Closed

#110124Translated pages of type link always link to the original language

f7media ka 06/30/26, 14:49 updated 11/13/26, 09:01

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.

History 3

  1. Benni Mack commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-13T09:01:11+00:00" > 11/13/26, 09:01 </span>

    Fixed with #110160