In short
An hreflang annotation only counts if it is confirmed: when page A names page B as its English version, B must name A in return. Checking reciprocity means checking every pair on the site and fixing the missing return links. Once the task is done, the audit no longer reports any "missing return" and every group of pages is listed identically on all its versions.
Why it matters
Google states it unambiguously in its guide to localized versions: if two pages do not point to each other, the annotations are ignored. The rule protects sites: without it, anyone could declare their page a translation of yours.
Reciprocity is judged on the exact URL. If /fr/tarifs/ points to https://example.com/en/pricing/ and the English page answers with https://example.com/fr/tarifs without the trailing slash, or with http://, the return link does not match the annotated URL.
The real causes are almost always the same:
- a translation created separately in the CMS, without being linked to its original page;
- a slug changed in one language while the other pages keep the old address;
- a translation unpublished, redirected or set to
noindex; - lists written by hand, page by page, that drift apart over time;
- a page cache or CDN (Content Delivery Network) cache still serving the old annotations.
Google tolerates incomplete groups: it processes the pairs that confirm each other, even if some languages are missing. Its first recommendation is to link each new language in both directions with the site's original or dominant version.
What it improves
- Annotations that actually count Google can use every confirmed pair to show the right version.
- Regional variants Without a return link, two near-identical
fr-FRandfr-CHpages risk being treated as duplicates. - Click-through rate Fewer searchers sent to a language or country that does not apply to them.
- Maintenance A regular check catches unpublished or renamed translations before they pile up.
- Rankings and AI answers No direct effect; reciprocity only determines whether Google uses the annotations.
How to check
Manual check of one pair: list the annotations of both pages and look for the other page's URL.
curl -s https://example.com/fr/tarifs/ | grep -o -i '<link[^>]*hreflang[^>]*>'
curl -s https://example.com/en/pricing/ | grep -o -i '<link[^>]*hreflang[^>]*>' | grep 'https://example.com/fr/tarifs/'
The second command must return one line. If it returns nothing, the return link is missing or the URL differs by a character.
Tools:
- Merkle's hreflang tester: enter a URL; the tool reads its annotations and reports missing return links.
- Screaming Frog: in
Configuration > Spider > Crawl, tick "Store Hreflang" and "Crawl Hreflang". After the crawl, open the Hreflang tab, with the filters "Missing Return Links" and "Inconsistent Language & Region Return Links". Bulk export viaReports > Hreflang > Missing Return Links. The free version is limited to 500 URLs. - Search Console: no report has flagged missing return links since the "International Targeting" report was removed in 2022.
How to implement
Step 1 — List the URLs to check
Start from the indexable URLs in each language, ideally from the sitemap:
curl -s https://example.com/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed -e 's/<loc>//' -e 's/<\/loc>//' > urls.txt
For a sitemap index, repeat the command on each listed sitemap. On a large site, start with a sample: the page templates (home, categories, product pages, articles) are often enough to reveal a template defect.
Step 2 — Run the check
Without a paid tool, this dependency-free Python script reads the hreflang tags in each URL's HTML, fetches each target page and reports missing return links, inconsistent codes, redirected targets and errors. Save it as reciprocite.py:
import sys
import urllib.request
from html.parser import HTMLParser
CACHE = {}
class HreflangParser(HTMLParser):
def __init__(self):
super().__init__()
self.links = {}
def handle_starttag(self, tag, attrs):
a = dict(attrs)
if tag == 'link' and (a.get('rel') or '').lower() == 'alternate' and a.get('hreflang') and a.get('href'):
self.links[a['hreflang'].lower()] = a['href'].strip()
def annotations(url):
if url in CACHE:
return CACHE[url]
CACHE[url] = None
request = urllib.request.Request(url, headers={'User-Agent': 'hreflang-check'})
try:
with urllib.request.urlopen(request, timeout=15) as response:
if response.geturl() != url:
print(f'REDIRECTED\t{url}\t{response.geturl()}')
return None
parser = HreflangParser()
parser.feed(response.read().decode('utf-8', 'replace'))
CACHE[url] = parser.links
except Exception as error:
print(f'UNREACHABLE\t{url}\t{error}')
return CACHE[url]
for source in [line.strip() for line in open(sys.argv[1]) if line.strip()]:
links = annotations(source) or {}
own = {code for code, href in links.items() if href == source}
for code, target in links.items():
if target == source or code == 'x-default':
continue
back = annotations(target)
if back is None:
continue
back_codes = {c for c, href in back.items() if href == source and c != 'x-default'}
if not back_codes:
print(f'MISSING RETURN\t{source}\t{code}\t{target}')
elif own and own.isdisjoint(back_codes):
print(f'INCONSISTENT CODE\t{source}\t{sorted(own)} vs {sorted(back_codes)} on {target}')
python3 reciprocite.py urls.txt > reciprocite.tsv
The resulting file opens in a spreadsheet. Sample output:
MISSING RETURN https://example.com/fr/tarifs/ de https://example.com/de/preise/
INCONSISTENT CODE https://example.com/fr/tarifs/ ['fr'] vs ['fr-fr'] on https://example.com/en/pricing/
REDIRECTED https://example.com/de/leitfaden/ https://example.com/de/ratgeber/
The script only reads HTML. If your annotations are in the sitemap, compare the <url> blocks with one another instead: each <loc> must appear in the xhtml:link elements of all the other versions.
Step 3 — Sort the discrepancies
| Symptom | Likely cause | Fix |
|---|---|---|
| Missing return on every page of one language | That language's template has no annotations, or the plugin is disabled | Fix the template or the plugin configuration |
| Missing return on a few pages | Translations not linked in the CMS | Link the translations (see below) |
| Return to a similar but different URL | Trailing slash, http, www, capital letters |
Align with the canonical URL: see use absolute URLs (opens in a new tab) |
| Redirected target | Slug changed, page moved | Put the new URL in every version: see exclude redirects and nonexistent pages (opens in a new tab) |
| Unreachable target (404, 410) | Translation deleted | Remove the language from the group everywhere: see update annotations when a translation is removed (opens in a new tab) |
Inconsistent code (fr vs fr-FR) |
Codes defined differently depending on the language | Use the same code everywhere for a given URL |
Fix at the source, then purge the caches (caching plugin, Varnish, CDN) and run the script again: the output must be empty.
WordPress
Versions WordPress 6.4 to 7.1; WPML 4 and 5, Polylang 3, TranslatePress and Weglot, November 2026.
- WPML: open the orphaned translation; in the editor's "Language" box, use the option to connect it with an existing translation to attach it to the original page. The Translation Management dashboard shows content with no linked translation.
- Polylang: in the editor's "Languages" box, enter the matching translated content for each language. A page created in one language without this link has no annotations pointing to the others.
- TranslatePress and Weglot: the translated page shares the original URL with a prefix; missing return links usually come from a modified translated slug or an excluded page.
Then clear the caching plugin's cache.
Shopify
Versions Shopify admin, all plans, November 2026.
Shopify produces reciprocal lists by design. A missing return link usually points to an app or theme adding its own tags, or to a language that is not published on a market. Remove the tags added to the theme and check the published languages in each market's settings.
Drupal
Versions Drupal 10 and 11; contributed Hreflang module 8.x-1.x, or 2.x from Drupal 11.1.
An entity's translations share the same node: return links are reciprocal by design. The core Content Translation module only adds annotations on content entity pages, so discrepancies come from other pages (views, listing pages) or from an unpublished translation. Check the configuration of the Hreflang module, which extends annotations to every page, and the publication status, then run drush cr.
Laravel
Versions Laravel 11 to 13.
Never store the list of versions page by page. Generate it from a table of groups (a group identifier shared by all translations), filtered on published versions: every page in a group then shows the same list, and reciprocity is guaranteed. See the example in implement hreflang for equivalent pages (opens in a new tab).
Next.js
Versions Next.js 15 and 16 (App Router).
Same principle: a single function, for example getPageTranslations(), returns the complete group from the content source, and every version calls it in generateMetadata. After a fix, regenerate the static pages or wait for revalidation; otherwise the old annotations keep being served.
Cloudflare
Versions Cloudflare dashboard, all plans, November 2026.
Cloudflare does not change the annotations, but it may serve a cached page with the old list. After a fix, purge the affected URLs: Caching > Configuration, "Custom Purge".
Common mistakes
- Comparing "nearly" identical URLs:
/fr/tarifsand/fr/tarifs/are two URLs for Google; the return link must use the exact URL. - Fixing only one page of the pair: the other is still left without a return link.
- Pointing to a language's homepage for lack of a translation: the homepage does not link back, so the return link is missing. Remove the language from the group.
- Auditing with a tool that runs JavaScript when the tags are injected client-side: the check passes, but crawlers that read the raw HTML see nothing.
- Forgetting the caches: the fix is live in the CMS, but visitors and crawlers receive the old page.
- Linking non-equivalent pages to "close" a return link: two different pieces of content do not form a group.
Frequently asked questions
What happens if an hreflang page has no return link?
Google ignores an annotation that is not confirmed. If the French page names the English page and the English page does not name the French one in return, that link is not used to choose the version shown. The other pairs in the group that confirm each other are still taken into account. The rule prevents a third-party site from arbitrarily declaring itself a translation of your pages.
Should all languages be linked to each other?
Ideally, every version lists all the others, itself included. If that is hard to maintain, Google accepts incomplete groups and processes the pairs that confirm each other. In that case, it recommends linking each new language first, in both directions, with the site's original or dominant version, rather than with the other recent languages.
How can you check hreflang reciprocity for free?
Merkle's hreflang tester checks a URL and its return links in a few seconds. For a whole site, the free version of Screaming Frog crawls up to 500 URLs with the Missing Return Links filter. Beyond that, a small script that reads each page's tags, fetches each target and checks that it returns the source's exact URL does the job without a license.
Does a return link to a URL without a trailing slash count?
No, not reliably. Google compares URLs, and https://example.com/fr/tarifs is not the same URL as https://example.com/fr/tarifs/, even if one redirects to the other. The return link must use the page's exact canonical URL: same protocol, same host, same trailing slash, same case. Generate all hreflang URLs from the same function as the canonical.
Resources
- Google Search Central: Tell Google about localized versions of your pagedevelopers.google.com
- Screaming Frog: Missing Return Links filterscreamingfrog.co.uk
- Merkle's hreflang testertechnicalseo.com
- Polylang: documentationpolylang.pro
- WPML: documentationwpml.org
Updated on
Topic checklist (PDF)