Hreflang and international · Hreflang annotations

Invalid incoming hreflang

This page's own hreflang is correct, but the US page and the region picker refer to it as en-UK, which is not a valid language and region code.

How this page is built

This page labels itself en-GB:

  • en-GB: this page
  • en-US: the US English version
  • x-default: the region picker

The US English version and the region picker both label this page en-UK. The code for the United Kingdom is GB, so their annotation for this page is invalid.

Why it matters

Search engines ignore hreflang values they cannot read. If the pages that point at this URL use an invalid code, their annotation for this page is thrown away, and this page loses its place in the set.

The fault is not visible in this page’s source, which is why crawl tools report it on the page that receives the bad links.

How to check it

Crawl the set and list every annotation that points at this URL. Check each code. Crawl tools report URLs that receive invalid hreflang from other pages.

How to fix it

Correct the code on the pages that link here. Generating every page’s annotations from one list stops the codes from drifting apart.

Back to all tests