# Why hreflang fails when one page forgets to link back

> Every `hreflang` line is a claim that another page is a translation of this one. **A search engine believes the claim only when the other page makes it back**, and nothing on the page you are looking at can tell you whether it does.

Published 2026-11-24. Canonical: https://loupekit.com/blog/hreflang-return-links/

The markup is short and it is the same on every page in the set. Each language version lists every version, itself included, with a code saying who it is for:

*the same four lines, on every page in the set*

```html
<link rel="alternate" hreflang="en-GB" href="https://example.com/en-gb/contact/">
<link rel="alternate" hreflang="de-DE" href="https://example.com/de-de/kontakt/">
<link rel="alternate" hreflang="fr-FR" href="https://example.com/fr-fr/contact/">
<link rel="alternate" hreflang="x-default" href="https://example.com/contact/">
```

There are three places to declare it: these links in the head, an HTTP `Link` header (the only option for a PDF), or `xhtml:link` entries in the XML sitemap. Google reads all three. Pick one - three sources for one fact are three sources that will eventually disagree.

## A cluster is confirmed in pairs

Google's documentation is direct about it: if two pages do not both point to each other, the annotations are ignored. The reason is easy to see once you think about who can write a `<link>` tag. Anybody can publish a page claiming yours as its German version. **The return link is the authentication** - your page agreeing that the relationship exists.

Pairwise confirmation sounds forgiving, and in principle it is: one bad pair costs one pair. In practice the tags are not written page by page. They are written by a template per locale, so a mistake in the German template is a mistake on every German page at once - and every pair that includes German fails. German loses its alternates, every other language loses German, and the set is a locale short everywhere.

> The page that is wrong is not the page that shows the symptom. The English page lists German perfectly and German searchers still land on English. The bug is in the German template, which nobody on the English team opens.

## The rules every member has to keep

- **It lists itself**: Each page names its own URL in the set, under its own code. Google's documentation asks for it in so many words, and it is the line a hand-written set forgets first, because it feels redundant.
- **It lists everyone else**: The full set on every page, not just a link to the default. A set where each translation points only at English is a star: the translations never confirm one another, so French and German are not alternates of each other at all.
- **Fully qualified URLs**: Protocol and host included. A relative `href` is the commonest way a set that looks right in the template comes out wrong on the page.
- **The canonical URL**: Each `href` should be the address the target names as its own canonical. A URL that redirects, returns an error, or canonicalises somewhere else points at a page that is not indexed as itself - and a page that is not indexed cannot confirm anything.
- **One page per code**: Two URLs both claiming `de-DE` is a contradiction. One URL under two codes - `de-DE` and `de-AT` pointing at the same page - is fine and common.

The canonical rule is the one that breaks sets nobody touched. A migration adds trailing slashes, the old URLs redirect, and every `hreflang` in the set now points at a redirect. **Each page still looks correct on its own**; none of them are confirmed.

## The codes are not the ones you think

The value is a language from ISO 639-1, optionally followed by a region from ISO 3166-1 alpha-2, with a script subtag where it matters (`zh-Hant`). The language is required. A region on its own is not a valid value, and several region codes happen to be language codes for something else:

- **uk**: Ukrainian. The United Kingdom is `GB`, so British English is `en-GB` - and `en-UK` names a region that does not exist.
- **se**: Northern Sami. Swedish is `sv`; Sweden is the region `SE`.
- **jp, dk, cz**: Not languages at all. Japanese is `ja`, Danish is `da`, Czech is `cs`; the two-letter codes people reach for are the countries.
- **en_GB**: An underscore. Locale strings from server frameworks often look like this, and `hreflang` takes a hyphen.

None of these fail loudly. A value that is not a valid code is dropped, and a valid code for the wrong language is believed. The second is worse, because the set is confirmed and simply says the wrong thing.

## x-default is a fallback, not a language

`x-default` names the page for anybody whose language matches nothing in the set - usually a language picker, or the international version of the site. It is optional. A set without one still works; a visitor with an unlisted language gets whichever version the engine decides suits them.

It follows the same rules as every other member. The page it points at carries the full set, and if that page is also the English version it appears twice, once under `en` and once under `x-default`. **What it must not be is inconsistent**: present on half the templates and absent from the rest is two different answers to one question.

## Why one page cannot tell you

Every rule about a page's own list is visible in its head: whether it lists itself, whether the codes are shaped like codes, whether `x-default` is there. The return-link rule is not, because it lives on other pages. Checking it means fetching each alternate and reading its links back, and for a set of eight languages that is 64 links that all have to agree.

LoupeKit's SEO tab splits it the same way. The Overview lists the page's alternates and checks what one page can show - its own entry, `x-default`, the shape of every code - and a button beside them fetches each listed alternate and reads its links back. An alternate on another host answers only if that host lets the page read it, and the reading says when one did not. The Sweep section walks the sitemap, reads a sample of same-origin pages, and lists the ones named as an alternate that do not point back, the ones missing themselves, and the ones missing an `x-default` the others carry.

> A finding about a return link is a finding about two pages. Fix the template that renders the silent one, not the page that happened to report it.
