Issue Bug Closed

#90641Setting hreflang to "x-default" break html-lang attribute

David Gurk 03/04/20, 17:35 updated 03/06/20, 10:19

Description

I have the following Site Handling config in a multi page tree setup:

Each page tree uses an own config.yaml for the site configuration.

On the homepage within the HTML-head this correct hreflang tags where rendered:

<link rel="alternate" href="https://www.example.com/it-it/" hreflang="de-DE">
<link rel="alternate" href="https://www.example.com/it-it/" hreflang="it-IT">
<link rel="alternate" href="https://www.example.com/it-it/" hreflang="en-DB">
<link rel="alternate" href="https://www.example.com/" hreflang="x-default">

This works, since I set hreflang to “x-default” for the default international page.

Since this property is `Used within for “lang” and “hreflang” attributes` I got a the following HTML-tag:

<html dir="ltr" lang="x-default">

This is indeed wrong.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.