Duplicate Without User-Selected Canonical: What It Means for a Next.js Blog and When to Fix It
What Search Console's duplicate without user-selected canonical status means on a Next.js blog, how to set alternates.canonical, and when to ignore it.
"Duplicate without user-selected canonical" means Google found a URL that it treats as a copy of another URL, the page itself does not say which version is the original, and Google picked the other one as canonical. The URL in the report is left out of search results; the version Google chose is shown instead. On its own this is not an error. Fix it only when Google picked the wrong URL, or when the duplicate exists because of a bug in how your site serves URLs, such as both www and the bare domain answering with the same page.
This guide is for a developer who runs a Next.js or MDX blog and sees this row in the Search Console Pages report. It covers where these duplicates come from, how to declare a canonical in App Router, and which rows you can ignore.
What the status actually says
Search Console groups non-indexed URLs by reason. Three of those reasons are about canonicals, and they are easy to mix up:
| Status | Does the page declare a canonical? | What Google did | Usually needs action? | |---|---|---|---| | Duplicate without user-selected canonical | No | Picked another URL as canonical | Only if the chosen URL is wrong | | Duplicate, Google chose different canonical than user | Yes | Ignored your tag and picked another URL | Yes: your signals disagree | | Alternate page with proper canonical tag | Yes, pointing elsewhere | Followed your tag | No: working as intended |
The first row is the one this page is about. The key word is "user-selected": Google is telling you that you never made a choice, so it made one for you.
Google treats a rel="canonical" tag as a strong hint, not a command. Redirects are a stronger signal, and listing a URL in your sitemap is a weaker one. Google weighs all of them, plus internal links, to pick a canonical. That is why the fix is rarely "add a tag" alone.
Where duplicates come from on a Next.js or MDX blog
Most rows in this report on a small developer blog come from a short list of URL variants that all return the same HTML with a 200 status:
- www vs apex.
https://www.example.com/blog/postandhttps://example.com/blog/postboth resolve. This happens when both hosts are attached to the deployment and neither redirects to the other. - Trailing slash.
/blog/postand/blog/post/both return 200. Next.js redirects one form to the other by default based on thetrailingSlashoption innext.config.js, but custom servers, rewrites and some hosting setups can leave both live. - Query parameters.
?ref=producthunt,?utm_source=newsletter,?page=1. Every distinct query string is a distinct URL to Google. If someone links to it, Google can crawl it. - Tag and category listings. A tag page with one post, or a category page that shows the same three posts as another, can be judged a duplicate of each other or of the post.
- Leftover routes. An old
/posts/slugroute that still renders next to the new/blog/slug, or a preview deployment URL that got indexed.
Before you change code, open one affected URL in URL Inspection. It shows the User-declared canonical (what your page says, here "None") and the Google-selected canonical (what Google picked). If the Google-selected URL is the one you would have chosen anyway, the row is harmless.
Worked example: deciding row by row
Say the report lists these four URLs. The decision for each comes from comparing the listed URL with the canonical Google selected:
| Listed URL | Google-selected canonical | Cause | Action |
|---|---|---|---|
| https://example.com/blog/nextjs-sitemap | https://www.example.com/blog/nextjs-sitemap | apex and www both serve | Redirect apex to www (or the reverse), declare canonicals |
| https://www.example.com/blog/nextjs-sitemap/ | https://www.example.com/blog/nextjs-sitemap | trailing slash variant | Make one form redirect; declare canonicals |
| https://www.example.com/blog/nextjs-sitemap?ref=hn | https://www.example.com/blog/nextjs-sitemap | tracking parameter | Ignore; canonical tag covers it |
| https://www.example.com/tags/sitemaps | https://www.example.com/tags/nextjs | two tag pages list the same posts | Merge the tags or noindex thin tag pages |
Rows one and two point at a real serving bug: two hosts or two path forms answering with 200. Row three is expected and goes away once the page declares its own canonical. Row four is a content decision, not a code bug.
How to declare a canonical in App Router
Set metadataBase once in the root layout so relative URLs resolve to your preferred host:
// app/layout.tsx
import type { Metadata } from "next";
export const metadata: Metadata = {
metadataBase: new URL("https://www.example.com"),
};
Then give every post its own canonical in generateMetadata:
// app/blog/[slug]/page.tsx
import type { Metadata } from "next";
export async function generateMetadata(
{ params }: { params: Promise<{ slug: string }> }
): Promise<Metadata> {
const { slug } = await params;
return {
alternates: { canonical: `/blog/${slug}` },
};
}
Next.js renders that as <link rel="canonical" href="https://www.example.com/blog/your-slug">. Three rules keep it honest:
- Self-referencing. Each page points to its own clean URL, without query strings.
- One form everywhere. The canonical, the sitemap
<loc>, and every internal link use the same host and the same trailing slash style. Mixed signals are how "Google chose different canonical than user" happens next. - Absolute in the output.
metadataBasemakes the rendered tag absolute even though you write a relative path.
Then remove the duplicates at the source. Redirect the non-preferred host at the DNS or hosting layer, keep trailingSlash set to one value, and strip ?ref= style parameters from your own internal links. The Next.js SEO checklist covers the sitemap and metadata setup this sits inside.
When to leave it alone
Not every row needs work. Leave a URL in this status when:
- The Google-selected canonical is the URL you want. Google already made the right choice; adding a tag only confirms it.
- The listed URL is a parameter variant like
?utm_source=...that you do not link to yourself. - The listed URL is a page you removed or
noindexed on purpose and it now resolves to its replacement.
Do not request indexing for duplicate URLs, and do not add them to your sitemap to "force" them. That sends Google a signal that conflicts with your canonical. The same goes for the Indexing API, which is not meant for blog posts at all.
Checking the fix from the terminal
After you deploy, the report updates only as Google recrawls the duplicates, so expect weeks rather than days. Two checks are quick:
# Does the non-preferred host redirect?
curl -sI https://example.com/blog/nextjs-sitemap | grep -i -E "^(HTTP|location)"
# Does the page declare the right canonical?
curl -s https://www.example.com/blog/nextjs-sitemap | grep -o '<link rel="canonical"[^>]*>'
For the Google side, the Search Console URL Inspection API returns both the user-declared and Google-selected canonical for a URL in a property you own. Running that over your top pages each week turns this report into a short list of real problems. An SEO CLI can pull that data, and the check fits the weekly SEO workflow. If the same report also shows "Not found (404)" rows after a cleanup, the 404 triage guide covers when to redirect and when to let them drop.
When two of your own posts really do cover the same thing, the fix is a merge, not a tag: see how to fix keyword cannibalization. PageSeeds Hosted runs this weekly check on your site and sends the canonical, redirect and link fixes as one pull request in your repo, for $99/month.
FAQ
What does "Duplicate without user-selected canonical" mean?
Google found a page it considers a duplicate of another URL, the page declares no canonical, and Google picked the other URL. The listed URL is not shown in search; the chosen version is.
Is "Duplicate without user-selected canonical" an error?
Not by itself. It is an exclusion status, not a penalty. Fix it when Google chose the wrong URL or when the duplicate comes from a serving bug like www and apex both answering.
How do I fix it in Next.js App Router?
Set metadataBase in the root layout and alternates.canonical in each page's metadata. Then redirect the non-preferred host, pick one trailing slash style, and keep tracking parameters out of internal links and the sitemap.
How long does it take for the status to clear?
Google has to recrawl the duplicate URLs first, so expect weeks. Use URL Inspection on one affected URL to confirm the user-declared and Google-selected canonicals now match.
What is the difference from "Duplicate, Google chose different canonical than user"?
Here the page declares no canonical. In the other status the page declares one, but Google picked a different URL, which usually means redirects, internal links or the sitemap disagree with the tag.
$99/month per site
Frequently Asked Questions
What does 'Duplicate without user-selected canonical' mean?
Google found a page that it considers a duplicate of another URL, the page does not declare a canonical of its own, and Google picked the other URL as the canonical. The listed URL is not shown in search; the version Google chose is.
Is 'Duplicate without user-selected canonical' an error?
Not by itself. It is an exclusion status, not a penalty. It only needs fixing when the URL Google chose is the wrong one, or when the duplicate exists because of a bug such as both www and apex hosts serving the same page.
How do I fix it in Next.js App Router?
Set metadataBase in the root layout and alternates.canonical in each page's metadata or generateMetadata, so every page declares one absolute URL. Then remove the source of the duplicates: redirect the non-preferred host, pick one trailing slash style, and keep tracking parameters out of internal links and the sitemap.
How long does it take for the status to clear?
Google has to recrawl the duplicate URLs before the report changes, so expect it to move over weeks rather than days. Use URL Inspection on one affected URL to confirm that the user-declared canonical now matches the Google-selected canonical.
What is the difference from 'Duplicate, Google chose different canonical than user'?
In 'without user-selected canonical' the page declares no canonical and Google picked one. In 'Google chose different canonical than user' the page does declare a canonical, but Google ignored it and picked another URL, which usually means the other signals (redirects, internal links, sitemap) disagree with the tag.