Skip to content

All checks / Technical

hreflang link element has conflicting attributes

hreflang alternate link elements must not be combined with certain other attributes that change their meaning to denote a different device or language version.

Warning hreflang-no-combined-attributes

In SEOCode's checks since 9 May 2026


Why this matters.

hreflang alternate link elements must not be combined with certain other attributes that change their meaning to denote a different device or language version. Adding such attributes causes Google to ignore the hreflang annotation for canonicalization purposes, breaking your international targeting signals.

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


How to resolve it.

Review your hreflang link elements and remove any additional attributes that alter their semantic meaning. A valid hreflang element should only have rel="alternate", hreflang="en", and href="https://example.com/en/": <link rel="alternate" hreflang="en" href="https://yourdomain.com/en/page" />

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

Localization

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