Bug #101157
closedCanonical tag incorrect in free mode
100%
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.