thedaviddias/Front-End-Checklist / skills/canonical-header
canonical-header
VerifiedUse when auditing metadata, crawlability, structured data, or indexability related to Sync HTML canonical tags and Link headers. Verify the rendered HTML and HTTP response rather than relying only on source files.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.7 KB |
| references/rule.md | markdown | 2.5 KB |
references/rule.md
View on GitHub# Sync HTML canonical tags and Link headers
> Ensures consistency between HTML rel="canonical" tags and HTTP Link canonical-url headers.
**Priority:** medium · **Difficulty:** intermediate · **Time:** 10 min
---
Consistency across all technical signals is crucial for ensuring search engines interpret your site's structure correctly. If the HTML canonical tag and HTTP `Link` header disagree, they create the same ambiguity addressed in [canonical URL selection](/en/rules/seo/canonical-url).
## Code Example
```bash
# ✅ Good: HTTP Header and HTML tag provide the same URL
# HTTP Response Header:
# Link: <https://example.com/target-page>; rel="canonical"
# HTML <head> section:
# <link rel="canonical" href="https://example.com/target-page">
```
## Why It Matters
- **Signal Reliability**: Consistent signals ensure that search engines trust and follow your canonicalization instructions.
- **Duplicate Content**: Prevents different versions of a page from competing with each other in search results.
- **Technical Integrity**: Reduces the likelihood of "canonical-url mismatch" errors in [Google Search Console](https://search.google.com/search-console/about) reports.
- **Predictable Indexing**: Ensures that the URL you want to rank is the one that search engines actually choose.
## Exceptions
- Staging, utility, login, account, or internal search pages may intentionally use different crawl or index signals if they are not meant to rank.
- Temporary migration states can produce noisy intermediate signals; flag the live production URL pattern, not one-off transition artifacts.
- When redirects, canonicals, robots directives, or indexability signals conflict, fix the strongest final signal first instead of reporting every downstream symptom as a separate blocker.
## Standards
- Use these references as the standard for the final search-facing HTML, metadata, and crawl behavior.
- Check the implementation against Google Search Central: Search Essentials before treating the rule as satisfied.
- Check the implementation against Google Search Central documentation before treating the rule as satisfied.
## Verification
### Automated Checks
- Inspect rendered HTML and HTTP headers to confirm the expected metadata or crawlability signal is present.
- Test the affected URL with Google Search Console or equivalent tooling where relevant.
- Re-crawl a representative page set after deployment.
### Manual Checks
- Confirm the change does not create conflicting canonical-url, robots, or structured-data signals.Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |