Review main Ready for review

97732[BUGFIX] Follow target of translated shortcut when creating links

Thomas Schmidt CR 0 V 0 Normal +200 −1 updated 11/17/26, 10:50

Commit message

When a page of type shortcut points to a different target in a
translation than in the default language, the request to that page
redirects to the target of the translation. Links to that page,
however, were created for the target of the default language page:

* If the target of the default language page is available in the
  requested language, the link points to a different page than the
  redirect.
* If it is not available (e.g. its translation is hidden) and no
  fallback is configured, no link is created at all, although the
  page itself is accessible.

PageLinkBuilder resolves the shortcut of the default language page
first and overlays the resolved target afterwards. The translated
shortcut is now taken into account before resolving, in case its
shortcut target or mode differs from the default language page.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/32/97732/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/32/97732/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 2

Issues 1

Files 3

Review log 12

  1. Thomas Schmidt uploaded patch set 1 11/17/26, 10:34

  2. core-ci voted on patch set 1 V +1 11/17/26, 10:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114706