SEO & Growth
A Canonical Tag Is a Decision, Not a Suffix
Pointing every page at itself is how you tell Google a site has no opinions. Decide which URL owns the content.
I have audited hundreds of codebases where the canonical tag was implemented as a blind template helper: `<link rel="canonical" href={current_url} />`. Every page pointed to itself, forever.
That is not a canonical tag. That is an echo chamber. It tells search engines that your site has no opinions about duplicate content.
A canonical is an assertion of ownership
The canonical tag exists to answer one question: when five URLs contain substantially identical content, which single URL should receive the ranking equity and appear in the SERP?
When you have `/products/shoes?sort=price`, `/products/shoes?filter=running`, and `/categories/footwear/shoes`, you must decide which one owns the page. If you point each URL at itself, you force Google's algorithm to guess — and algorithms frequently choose the parameterised URL, splitting your backlinks and anchor authority across three variations.
If you do not choose your primary URL, Google will choose one for you, and it will pick the one you least want in search results.
Rules for canonical hygiene
- Always use absolute URLs including protocol and host (`https://kadirulislam.com/posts/slug`, never relative paths).
- Strip query tracking parameters (`utm_*`, `ref`, `session_id`) from the canonical target.
- Match the canonical URL character-for-character with your sitemap `<loc>` entry.
- Ensure the canonical target returns a 200 OK — a canonical pointing to a 301 or 404 is ignored by crawlers.