Skip to content
FunnelGuard

Fix guide by FunnelsGuard

hreflang points to non-canonical URLs: how to find and fix it

SEO-269Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

hreflang is a tag that tells search engines which language or country version of a page to show to which user. A canonical tag (rel="canonical") tells search engines which URL is the preferred version of a page when several URLs show the same content.

This issue appears when the two disagree. The hreflang tag lists https://example.com/fr/produit?utm_source=news, but that page's canonical says https://example.com/fr/produit. Or hreflang lists the http:// or www version while the canonical is https:// without www. Search engines are told to treat one URL as the real page and, in another tag, to use a different URL as the language alternate.

Google's guidance is that hreflang annotations should point to canonical URLs. When they do not, the annotation may be dropped, because the listed URL is itself treated as a duplicate of another page.

Why it costs you leads or sales

If hreflang is ignored, a visitor in Germany can land on your English page, or a French visitor on your UK page with prices in the wrong currency. They see the wrong language, the wrong price or the wrong shipping rules, and many leave. Your forms and checkouts never get a chance.

It is a quiet problem. Pages still rank and nothing looks broken in a browser. You only notice it as the wrong country version appearing in search results, or as weak traffic from a market you invested in. Business impact is medium: it rarely stops sales outright, but it weakens every international page.

How a canonical mismatch loses the right visitor
  1. Search in FranceUser searches in French
  2. hreflang readPoints to a URL with parameters
  3. Wrong version shownEnglish or UK page ranks instead
  4. Form or checkoutVisitor leaves before converting

The hreflang set is ignored, so the market-specific page is never chosen.

How to check if your site has it

For each language version of a key page, compare two things: the URLs in the hreflang tags and the canonical tag of each of those URLs. They must be identical, character for character.

Check one page by hand
  1. Open the page source

    Visit the page, right-click and choose View page source. Search for hreflang.

  2. Copy each hreflang URL

    Note every href in the link rel="alternate" tags, including the self-reference.

  3. Open each URL and read its canonical

    On every alternate page, search the source for rel="canonical" and compare it with the URL you came from.

  4. Look for differences

    Check protocol (http vs https), www vs non-www, trailing slash, uppercase letters, query strings and index.html endings.

  5. Crawl the whole site

    Use a crawler such as Screaming Frog (Reports > Hreflang > Non-200 Hreflang URLs and the Hreflang tab filters for non-canonical) or Sitebulb. Google Search Console does not have a dedicated hreflang report any more, so a crawler is the practical way.

Common mismatches between hreflang and canonical
hreflang URLCanonical URLProblem
http://example.com/fr/https://example.com/fr/Protocol differs
https://www.example.com/fr/https://example.com/fr/www differs
https://example.com/frhttps://example.com/fr/Trailing slash differs
https://example.com/fr/?utm_source=xhttps://example.com/fr/Query string in hreflang
https://example.com/fr/https://example.com/en/Page canonicalised to another language

How to fix it

The rule is simple: pick one canonical URL per page, then output exactly that URL in both the canonical tag and in every hreflang set. Each page should also have a self-referencing canonical (pointing to itself), not one pointing to another language.

Correct pattern: hreflang URLs equal each page's canonicalhtml
<!-- On https://example.com/fr/produit/ -->
<link rel="canonical" href="https://example.com/fr/produit/" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/produit/" />
<link rel="alternate" hreflang="en" href="https://example.com/en/product/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en/product/" />
Fix by platform
  1. Find who outputs hreflang

    It is usually a plugin such as WPML, Polylang, TranslatePress or an SEO plugin. Turn off any second source so only one plugin prints hreflang.

  2. Check the permalink and canonical settings

    Under Settings > Permalinks keep one structure. In your SEO plugin, make sure canonical URLs are not overridden per page to another language.

  3. Remove tracking parameters from output

    If the plugin builds hreflang from the current request URL, update it or add a rule so query strings are never included.

Build a clean URL without query string (if you must generate tags in JavaScript)javascript
const clean = location.origin + location.pathname;
const link = document.createElement('link');
link.rel = 'alternate';
link.hreflang = 'fr';
link.href = clean;
document.head.appendChild(link);
hreflang vs canonical

Before

  • hreflang lists URLs with parameters or http
  • Canonical says a different URL
  • Search engines may ignore the hreflang set
  • Wrong country version appears in results

After

  • hreflang URLs equal each page's canonical
  • Every page has a self-referencing canonical
  • One clean URL per page version
  • Right language and country version is eligible to show

How to confirm it's fixed

Confirmation checklist
  • View source on a key page in each language: the canonical equals the page's own hreflang entry.
  • Every hreflang URL loads with a 200 status and no redirect.
  • No hreflang URL contains utm_ parameters, session IDs or filters.
  • The protocol, host and trailing slash are the same in canonical and hreflang.
  • A fresh crawl shows no non-canonical hreflang URLs.
  • Use the URL Inspection tool in Google Search Console to check that the Google-selected canonical matches the one you declared.

Search engines need to recrawl pages before changes take effect, so results can take days or weeks to shift. Request indexing for the most important pages in Search Console to speed it up.

How to prevent it happening again

Prevention habits
  • Generate canonical and hreflang from one shared source in your code or one plugin.
  • Never print hreflang from the raw request URL.
  • Run a site crawl after every theme, plugin or migration change.
  • Keep one version of the site: force https and one host with 301 redirects.
  • Add hreflang and canonical checks to your launch checklist for new language versions.
  • Review international pages whenever you add a translation or marketing app.

How FunnelGuard handles this

FunnelGuard does not check this yet. Comparing hreflang URLs with canonical tags is a possible future check, not something the service does today.

What FunnelGuard does today is run your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule from the EU or the US, check each step and the tracking hits sent to ad and analytics platforms, and confirm test leads reach your inbox and CRM. That helps you spot a broken form or checkout on a localised page, but it will not tell you that your hreflang tags disagree with your canonicals.

To watch for this issue, schedule a monthly crawl with Screaming Frog or Sitebulb, review the hreflang filters, and check the URL Inspection tool in Google Search Console for key pages in each market. A free read-only website audit from FunnelGuard is also available if you want a broader look at your site.

Questions people ask

Should hreflang URLs be canonical URLs?

Yes. Google recommends that hreflang annotations point to the canonical version of each page. If a listed URL is a duplicate that canonicalises elsewhere, the annotation can be ignored.

Why is Google ignoring my hreflang tags?

Common causes are hreflang pointing to non-canonical URLs, missing return links, wrong language codes, or alternates that redirect, return errors or are noindex. Compare each hreflang URL with that page's canonical tag first, because mismatches are easy to miss.

Can a page have a canonical tag and hreflang at the same time?

Yes, and it should. Each page should have a self-referencing canonical and a full set of hreflang links that includes itself. The canonical must not point to a different language version.

Should the canonical of a French page point to the English page?

No. That tells search engines the French page is a duplicate of the English one, so it may not be indexed or shown to French users. Each language version should canonicalise to itself.

Do tracking parameters like utm_source break hreflang?

They can. If hreflang is built from the current URL, parameters end up in the tags and no longer match the canonical. Output a clean URL without query strings.

How do I find hreflang canonical errors across my whole site?

Run a crawler such as Screaming Frog or Sitebulb with hreflang reporting turned on and review the non-canonical hreflang filters. Then spot-check key pages with the URL Inspection tool in Google Search Console.

Does a trailing slash difference matter for hreflang?

Yes. Search engines treat /fr and /fr/ as different URLs. Pick one form, use it in the canonical and hreflang, and redirect the other to it.

Does FunnelGuard check hreflang and canonical mismatches?

Not yet. It is a possible future check. For now, use a site crawler and Google Search Console to monitor it, and use FunnelGuard to monitor forms, checkouts and tracking on your localised pages.

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.