Skip to content
Back to skills

Canonical Url

ASecurity

Use when auditing metadata, crawlability, structured data, or indexability related to Set canonical URLs for all pages. Verify the rendered HTML and HTTP response rather than relying only on source files.

  • 74,358 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 5, 2026
developmentgofrontend

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 5, 2026

npx -y skills add thedaviddias/Front-End-Checklist --skill canonical-url --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Canonical Url?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Canonical Url
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedaviddias-canonical-url/badge)](https://www.skillsdirectory.com/skills/thedaviddias-canonical-url)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: canonical-url
description: "Use when auditing metadata, crawlability, structured data, or indexability related to Set canonical URLs for all pages. Verify the rendered HTML and HTTP response rather than relying only on source files."
metadata:
  category: seo
  priority: high
  difficulty: beginner
  estimatedTime: "10"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/seo/canonical-url
---

# Set canonical URLs for all pages

Duplicate content from URL parameters, www vs non-www, or pagination dilutes ranking signals—canonical tags consolidate these signals to the preferred URL.

## Quick Reference

- Canonical URLs tell search engines which version of a page to index
- Prevents duplicate content penalties from URL variations
- Use absolute URLs including protocol and domain
- Self-referencing canonicals are a best practice

## Check

Verify that this page has a canonical URL tag and that it points to the correct preferred version.

## Fix

Add or correct the canonical URL tag in the head section to prevent duplicate content issues.

## Explain

Explain how canonical URLs help search engines understand the preferred version of duplicate or similar pages.

## Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Set canonical URLs for all pages. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/seo/canonical-url

Files in this skill

  • SKILL.md1.6 KB
  • references/rule.md4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…