Skip to content

All checks / Technical

Missing hreflang for multilingual/multiregional pages

For pages that have alternate versions in different languages or for different regions, hreflang tags tell Google which version to serve to which users.

Warning missing-hreflang

In SEOCode's checks since 9 May 2026


Why this matters.

For pages that have alternate versions in different languages or for different regions, hreflang tags tell Google which version to serve to which users. Without hreflang, Google may serve the wrong language version to users, reducing click-through rates and user satisfaction. Key requirements: (1) alternate URLs must be fully-qualified including the transport method (http/https); (2) each language version must list itself and all other language versions, missing return links cause tags to be ignored; (3) if page X links to page Y, page Y must link back to page X, if this bidirectional requirement is not met, hreflang annotations may be ignored or not interpreted correctly; (4) hreflang alternate link elements must not be combined with other attributes that change their meaning; (5) use x-default for a catchall fallback URL for users whose language is not covered; (6) language codes must be in ISO 639-1 format, region codes in ISO 3166-1 Alpha 2 format; (7) hreflang values are case-insensitive, both en-US and en-us are accepted (though uppercase region codes follow ISO 3166-1 Alpha 2 convention).

Runs on .html .jsx .tsx .vue .svelte · Warnings are reported on the pull request but do not block the merge.


How to resolve it.

Add hreflang link elements inside <head> for each language/region variant: <link rel="alternate" hreflang="en" href="https://yourdomain.com/en/page" /> <link rel="alternate" hreflang="fr" href="https://yourdomain.com/fr/page" /> <link rel="alternate" hreflang="x-default" href="https://yourdomain.com/page" />. Ensure every variant page includes the full set of hreflang links pointing to all variants including itself, and that all links are bidirectional.

SEOCode writes this fix for you

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.


Where this comes from.

01

Localized Versions

developers.google.com

Using a framework? Next.js · SvelteKit · Nuxt



Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

Free for public repositories · no credit card