All checks / Technical
hreflang set has no x-default
The page lists hreflang alternates but none is x-default.
Info
hreflang-x-default-missing
In SEOCode's checks since 22 Oct 2026
What it checks
Why this matters.
The page lists hreflang alternates but none is x-default. Google uses x-default for visitors whose language you do not cover, so without it those visitors may land on the wrong version. The x-default value is recommended for specifying the fallback page for users whose language settings don't match any of your site's localized versions. It works best with language selector pages. There is no need to specify a language code for the x-default URL itself. Important: if page X links to page Y via hreflang, page Y must link back to page X, if this bidirectional requirement is not met, hreflang annotations may be ignored. Each language version must list itself and all other language versions.
Runs on .html .jsx .tsx .vue .svelte · Advisory checks point at an improvement. They never block a merge.
The fix
How to resolve it.
Add <link rel="alternate" hreflang="x-default" href="https://yourdomain.com/" /> pointing at your fallback page, usually the language picker or the main language version. Ensure all hreflang pages link back to each other bidirectionally.
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.
Sources
Where this comes from.
Technical
Related checks.
Crawling, indexing, rendering and the directives that can take a page out of search.
Missing lang attribute on <html> Critical
The lang attribute on the <html> element tells search engines and screen readers what language the page is in.
Missing viewport meta tag Critical
Without a viewport meta tag, mobile browsers render the page at desktop width, causing poor mobile UX and hurting mobile rankings.
Missing charset declaration Warning
Without a charset declaration, browsers may misinterpret the page encoding, causing garbled text.
Missing canonical tag Warning
Without a canonical tag, search engines may index duplicate versions of your page (e.g., with/without trailing slash, with query params).
noindex directive detected Critical
A meta robots noindex tag was found.
Missing favicon Info
A favicon improves brand recognition in browser tabs and bookmarks.
Catch it before it ships
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