Skip to main content
All rules

SEO-018

Page declares more than one canonical URL

MediumDefault severity · SEO / Quality · SEO, quality and performance

Last reviewed

What it checks

Number of distinct <link rel="canonical"> URLs in the page.

Why it matters

With conflicting canonicals Google ignores all of them and picks its own.

Recommended fix

Output exactly one canonical link per page.

How to verify

View the page source and confirm a single canonical link.

Example fix prompt

Generic prompt (your report adds the evidence)
Please fix this production issue in my app.

Issue SEO-018: Page declares more than one canonical URL
Site: https://your-app.example

First confirm the issue in the code or live config. If it is not present, say so and change nothing.
Task: Make the page output exactly one <link rel="canonical">: find which layout or SEO plugin adds the extra one(s) in the evidence and remove the duplicate.

Constraints: make the smallest change that fixes this, keep the current design and behaviour, never paste secret values into code or chat, and tell me which files you changed.
Done when: View the page source and confirm a single canonical link.

References