Skip to content
FunnelGuard

Fix guide by FunnelsGuard

hreflang pointing to wrong or missing pages: how to fix it

PRF-351Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

hreflang is an HTML attribute (also available in HTTP headers and XML sitemaps) that links equivalent pages in different languages or regions. For example, en-gb for English in the UK and de-de for German in Germany.

The issue appears when the tags are wrong. Common forms: a tag points to a page that returns a 404 or redirects; a page links to another version but that version does not link back (a missing return tag); the language or region code is invalid; the page has no self-referencing tag; or the tag URL differs from the page's canonical URL.

Why it costs you leads or sales

When Google ignores broken hreflang, it picks a version by itself. A German visitor may land on your English page, with the wrong currency, wrong shipping terms and a form they struggle to read. Many will leave. The effect is usually modest and slow, which is why the business impact is low, but it grows with the number of markets you serve.

How a broken hreflang loses a visitor
  1. German visitor searchesSearches in German on google.de
  2. hreflang tagPoints to a 404 or has no return tag
  3. Wrong version shownEnglish page ranks instead of German
  4. Visitor leavesNo form fill or purchase

The break is at the tag; everything after it is what the visitor experiences.

How to check if your site has it

Check your hreflang tags
  1. View the page source

    Open a page, view source and search for hreflang. Note every URL listed in the <link rel="alternate"> tags in the head.

  2. Open each listed URL

    Each must load with a 200 status, not redirect, and not show an error or a different language.

  3. Check the return tags

    On each target page, confirm it lists the original page back. If A points to B, B must point to A.

  4. Compare with the canonical

    The hreflang URL for a page must match that page's rel="canonical" URL exactly, including protocol, www and trailing slash.

  5. Run a crawler or Search Console

    Use an SEO crawler that reports hreflang, such as Screaming Frog, Sitebulb or Ahrefs Site Audit. Google Search Console no longer has the old International Targeting report, so a crawler is the practical route.

Common hreflang errors and what they mean
ErrorWhat it meansFix
Missing return tagPage B does not link back to page AAdd the full set of tags to every version
Target is 404 or redirectsThe listed URL does not load directlyPoint to the final, live URL
Invalid codeFor example en-uk instead of en-gbUse ISO 639-1 language and ISO 3166-1 region codes
No self-referenceThe page does not list itselfInclude the page's own URL in the set
Canonical mismatchhreflang URL differs from canonicalMake both identical

How to fix it

The target is a complete, reciprocal set: every language version lists every version, itself included, with absolute URLs. Add an x-default for visitors who match none of your languages.

Correct hreflang set (same on every version)html
<link rel="alternate" hreflang="en-gb" href="https://example.com/en-gb/pricing/" />
<link rel="alternate" hreflang="de-de" href="https://example.com/de-de/preise/" />
<link rel="alternate" hreflang="fr-fr" href="https://example.com/fr-fr/tarifs/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en-gb/pricing/" />
Fix by platform
  1. Use a multilingual plugin

    Plugins such as WPML, Polylang or TranslatePress output hreflang automatically. Turn off any second plugin or SEO setting that also adds hreflang, as duplicates conflict.

  2. Link translations

    Make sure each page is linked to its translation in the plugin. Unlinked pages are the usual cause of missing tags.

How to confirm it's fixed

After the fix
  • Re-run your SEO crawler and confirm zero hreflang errors
  • Every hreflang URL returns 200 with no redirect
  • Each version lists all versions, including itself
  • hreflang URLs match each page's canonical URL
  • Language and region codes are valid
  • An x-default is present

Google can take weeks to recrawl and apply changes, so do not expect search results to switch straight away.

How to prevent it happening again

Habits that keep hreflang clean
  • Generate tags automatically rather than by hand
  • Update the tag set whenever you add, rename or delete a translated page
  • Add a redirect and update tags when a URL changes
  • Schedule a monthly or quarterly crawl that reports hreflang
  • Keep only one source of hreflang (plugin, theme or sitemap)

How FunnelGuard handles this

This is outside what FunnelGuard checks. FunnelGuard runs your customer journeys, such as forms, checkouts and booking buttons, and checks tracking and lead delivery. It does not audit hreflang tags across your pages. The kind of tool that fits is an SEO site crawler or technical SEO audit tool that reads hreflang and canonical tags and reports missing return tags and broken targets.

Questions people ask

Why is Google showing the wrong language version of my page?

Often hreflang is broken or missing, so Google chooses a version itself. Check that each version lists all versions with working URLs and that the tags are reciprocal. Other causes include canonical tags pointing to one language only.

What is a missing return tag in hreflang?

If page A names page B as its alternate, page B must name page A back. Without this, Google may ignore the pair. Fix it by outputting the full set of tags on every version.

Should hreflang point to the canonical URL?

Yes. Each hreflang URL should be the canonical version of that page, with matching protocol, domain and trailing slash. A mismatch can cause Google to ignore the tag.

Do I need x-default in hreflang?

It is not required, but it is recommended. It names the page to show visitors whose language or region matches none of your versions, such as a language selector or your main English page.

Is en-uk a valid hreflang code?

No. The correct code for English in the United Kingdom is en-gb. Use ISO 639-1 for language and ISO 3166-1 alpha-2 for region, such as de-at or fr-ca.

How do I check hreflang tags on my website?

View the page source and search for hreflang, then open each URL to confirm it loads and links back. For a whole site, run an SEO crawler that reports hreflang errors.

How long until hreflang fixes take effect?

It depends on how often Google recrawls your pages. It can take days to several weeks for all versions to be reprocessed, so recheck with a crawler first rather than waiting on search results.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.