All checks / Technical
Missing canonical tag
Without a canonical tag, search engines may index duplicate versions of your page (e.g., with/without trailing slash, with query params).
Warning
missing-canonical
In SEOCode's checks since 30 Apr 2026
What it checks
Why this matters.
Without a canonical tag, search engines may index duplicate versions of your page (e.g., with/without trailing slash, with query params). For JavaScript-rendered pages, Google has clarified that canonicalization happens both before and after rendering. Best practice: set the canonical URL to the same URL as in the original HTML. If that is not possible, omit the canonical tag from the original HTML entirely rather than setting an incorrect one that conflicts with the post-render canonical. Use absolute paths rather than relative paths, relative paths are supported by Google but not recommended as they can cause problems (e.g., if a testing site is accidentally crawled). The canonical link element must be in the <head> section of the HTML. Only the first canonical tag is used if multiple are present. Google prefers HTTPS pages over HTTP pages as canonical unless there are issues such as invalid SSL certificates, insecure dependencies, or HTTPS-to-HTTP redirects. Listing a URL in a sitemap is a weak canonicalization signal compared to rel=canonical link elements.
Runs on .html .jsx .tsx .vue .svelte · Warnings are reported on the pull request but do not block the merge.
The fix
How to resolve it.
Add <link rel="canonical" href="https://yourdomain.com/this-page" /> inside <head>. Use absolute URLs. For JavaScript pages, ensure this matches the canonical in the pre-rendered HTML.
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.
noindex directive detected Critical
A meta robots noindex tag was found.
Missing favicon Info
A favicon improves brand recognition in browser tabs and bookmarks.
Back button hijacking spam policy Critical
Google has added 'back button hijacking' as a named malicious practice in its spam policies.
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