Menu

1 / 5

Duplicate without user-selected canonical: Next.js + Sanity fix

DEV Community: nextjs·Nayan Kyada·10 days ago
#ScX0TTSp
#devtonextjs#devto#dev#canonical#google
Long article (1213 words) — no AI summary yet.
Reading 0:00
15s threshold

If Search Console is showing "Duplicate without user-selected canonical" against pages on your Next.js + Sanity site, Google has found the same content at more than one URL and nobody told it which one to keep. Those pages are being dropped from the index, usually the ones you most want ranking. The cause is almost never Sanity itself. It is how routes, domains and metadata are wired in the frontend.

What the status actually means

Google crawls a URL, compares it to others it knows, and clusters near-identical pages. If your pages carry no canonical, or a canonical that points somewhere odd, Google chooses a winner on its own. Sometimes it picks the right one. Often it picks a vercel.app address, a URL with a query string, or the www version you stopped using two years ago.

There is a sibling status, "Duplicate, Google chose different canonical than user". That one means you did set a canonical and Google disagreed.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.