Issue Bug Closed

#101157Canonical tag incorrect in free mode

Johannes Nielsen 06/23/23, 06:25 updated 07/09/24, 14:15

Description

In free mode, the canonical tag of pages which are not the root page is incorrect. Instead of the translated page’s slug, the slug of the page in the original language is used. The language entrypoint is correct, however. If, for example, you have a site in the default language English with the URL https://example.com/some-page and you have a translated version in German with the URL https://example.com/de/eine-seite, then the canonical tag on the german page will contain https://example.com/de/some-page. This page triggers a 404, of course, rendering the canonical tag invalid.

Setting the canonical tag via the backend still works as expected.

This issue seems to only be present in free mode.

I have marked this as regression because canonicals used to work in v11.

Reviews 2

History 38

  1. Michael Binder changed Related to #101187 06/28/23, 13:43

  2. Gerrit Code Review pushed patch set 1 for main to change 79586 status New Under Review 07/03/23, 10:42

  3. Gerrit Code Review pushed patch set 2 for main to change 79586 07/06/23, 20:26

  4. Gerrit Code Review pushed patch set 3 for main to change 79586 07/07/23, 08:05

  5. Gerrit Code Review pushed patch set 4 for main to change 79586 07/07/23, 08:25

  6. Gerrit Code Review pushed patch set 1 for 12.4 to change 79986 07/13/23, 07:50

  7. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 07/13/23, 08:35

    Applied in changeset commit:201e80150ee729512acf37a6c0b0d53320458381.

  8. Benni Mack changed status Resolved Closed 07/09/24, 14:15