Review main Ready for review Quiet

96857[BUGFIX] Skip hreflang tags for pages rendered via mount point

Ravi Sachaniya CR 0 V 0 Easy +14 −0 updated 10/19/26, 09:06

Commit message

The canonical tag of a page rendered through a mount point points to
the mounted target page, as the mount point is removed before the URL
is built. The hreflang alternates were still generated for the mount
point URLs, so canonical and hreflang disagreed and search engines
ignored the alternates.

Skip the hreflang generation when the page is rendered through a
mount point, in the same way as for an explicit canonical_link.

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/57/96857/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/57/96857/1 && git cherry-pick FETCH_HEAD

Review

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

Issues 1

Files 3

Review log 12

  1. Ravi Sachaniya uploaded patch set 1 10/19/26, 08:58

  2. core-ci voted on patch set 1 V +1 10/19/26, 09:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111607