Blog
Canonical Tag: Duplicate Without User-Selected Canonical
A canonical tag names the URL you want Google to keep. How to read Duplicate without user-selected canonical and Alternate page with proper canonical tag.
Muhammad Zubair Akhtar
A canonical tag is the rel="canonical" link element, or the matching HTTP Link header, that names the URL you prefer Google to treat as the representative copy of a page. Google calls that selection canonicalization. The preference is a hint, not a rule. If the tag disagrees with a redirect, with internal links, or with the sitemap, Google can keep a different URL. This page is what the tag is, how those signals stack, and how I read three Search Console rows: Duplicate without user-selected canonical, Alternate page with proper canonical tag, and Duplicate, Google chose different canonical than user. The middle row is also searched as alternative page with proper canonical tag.
I am Zubair Akhtar, a senior software engineer in Lahore, Pakistan. I ship Laravel, WordPress, and Next.js. A canonical that names a different host than the links in the template is one of the first things I check when the URL in Google is not the URL the page was built to be. The wider pass is the technical SEO checklist. The written report for one property is the technical SEO audit guide. If you want that pass on a live site, it sits under technical SEO services.
On 15 November 2026 I read Google's canonicalization page, updated 20 August 2026, How to specify a canonical URL, updated 10 July 2026, Fix canonicalization issues, updated 21 August 2026, the pagination page, updated 10 December 2025, and the Search Console Help Page indexing report. I also read the Next.js generateMetadata reference. I have not run these snippets for this article.
Figure 1. Redirects and the canonical tag are strong. A sitemap entry is weak. Point them at one URL. A contradiction is still a hint.
What a canonical tag is
Canonicalization is Google selecting the representative URL of a piece of content. A canonical URL, in Google's wording, is the URL of the page Google chose as the most representative from a set of duplicate pages. The result usually points at that URL. A duplicate can still be the result when it is a better match for that search, such as a mobile page for someone on a phone, even if the desktop URL is the canonical.
The same document can already exist at more than one address: http and https, www and the apex, a trailing slash and no slash, a tracking query, a sort order, a print view, an AMP URL, or a PDF beside an HTML page. Some of that duplication is normal. Google's canonicalization page says duplicate content on a site is not, by itself, a violation of Google's spam policies. It is a problem when a person cannot tell which URL is the real one, and when the metrics for one document are split across rows.
You do not have to declare a preference. If you do not, Google says it will pick the version it considers the best one to show. Declare one when you care which URL people see, when you want links and other signals consolidated onto that URL, or when you would rather Googlebot spend time on new pages than on copies. The canonicalization page says you can indicate that preference, and that Google may still choose a different page. The sentence I keep is theirs: indicating a canonical preference is a hint, not a rule. I compare the tag with the other signals on the same URL.
How Google picks a canonical
When Google indexes a page, it determines the primary content. Pages whose primary content is the same, or very similar, are clustered. Google then marks as canonical the page in that cluster that the indexing signals say is the most complete and useful. The canonical is crawled more often. Duplicates are crawled less often, to reduce the load.
The factors that page names are: whether the page is served over HTTP or HTTPS, redirects, presence of the URL in a sitemap, and rel="canonical" link annotations. The specify-a-canonical page orders the methods you control by how strongly they can influence that choice:
| Signal | Strength | What it says |
|---|---|---|
| Redirect | Strong | The target of the redirect should become canonical |
rel="canonical" link element or HTTP header | Strong | The URL in the annotation should become canonical |
| Sitemap inclusion | Weak | A listed URL is suggested as canonical. Google still decides which pages are duplicates |
| HTTPS, when the HTTP page is equivalent | Preference | HTTPS is preferred unless the certificate, mixed content, or a conflicting canonical says otherwise |
| Internal links | Supporting | Links should use the URL you consider canonical, not a duplicate |
The methods stack. Two or more, aimed at the same URL, raise the chance that your preference is the one in results. Aiming them at different URLs is the failure mode. The same page says not to specify one URL in the sitemap and a different URL with rel="canonical".
A redirect is the signal I use when the duplicate should stop existing as an address. The tag is the signal I use when both URLs should keep answering, and one of them is the copy I want stored. The sitemap lists only that copy. Internal links use the same string: scheme, host, path, and the site's slash policy. On this site the policy is no trailing slash. A slash and a missing slash are two URLs until one redirects. How I choose 301, 302, 307, 308, or 410 is the 301 vs 302 post. A Disallow in robots.txt is not one of these signals. Google says not to use robots.txt for canonicalization, because a disallowed URL can still be indexed without its content. That split is the robots.txt guide.
Google also prefers HTTPS over the equivalent HTTP URL, unless the HTTPS URL has a bad certificate, insecure dependencies other than images, a redirect through HTTP, or a canonical pointing at the HTTP URL. I do not list the HTTP URL in the sitemap while the tag points at HTTPS.
The rel=canonical HTML element
Google supports the rel="canonical" link annotation from RFC 6596. The element belongs in the head. It is only accepted there, so the head has to be valid HTML. An annotation that also carries hreflang, lang, media, or type is ignored for canonicalization. Those attributes belong on a different link, such as rel="alternate", not on the canonical one.
A page that should be stored, and every duplicate that should consolidate into it, points at the same absolute URL:
<link rel="canonical" href="https://example.com/blog/canonical-tags-explained">
Google's own example uses an absolute URL, and the page recommends absolute paths rather than relative ones. Relative URLs are supported. The same page says they cause problems over time, including a testing host that gets crawled and then resolves a relative canonical onto itself. The good example on that page is a full https://www.example.com/... URL. The bad example is a root-relative path such as /dresses/green/green-dress.html.
The canonical page includes the same element, pointed at itself. That is a self-referencing canonical. The specify-a-canonical page asks for it explicitly: add the self-referential rel="canonical" link on the canonical page as well. I print it on the URL I want indexed, not only on the copies.
One element. Google says to pick the link element or the HTTP header. Both at once are supported and more error prone, because the header can name one URL and the element another. A theme and an SEO plugin that each print a link are the same mistake. I record that in the technical SEO audit guide as two canonicals in one response.
If JavaScript inserts the element, Google prefers the canonical in the HTML source so script does not change it. If the source cannot contain it, leave it out of the source and set it only with JavaScript, so there is one statement. I want the tag in the server HTML.
HTTP header canonical for a PDF
The link element only works for HTML. For a file such as a PDF, Google documents a Link response header with rel="canonical", as defined by RFC 5988. The specify-a-canonical page says this method is supported for web search results only.
The documented shape, for a non-HTML file whose canonical is a PDF, is:
Link: <https://www.example.com/downloads/white-paper.pdf>; rel="canonical"
Use an absolute URL in the header, the same rule as the element. The header is also the right tool when the response is HTML but you cannot edit the head, as long as you are not also emitting a conflicting element.
A PDF and an HTML page that are the same document should not both be canonical. Pick the one you want in results, point the other at it, and list only the winner in the sitemap. If the PDF should be the result, the HTML canonical is the PDF URL and the PDF header points at itself. If the HTML page should be the result, the PDF header points at the HTML URL.
The Laravel form of a Link header on an HTML response is already in the technical SEO checklist. The header value is the absolute URL, the query string is not part of it, and it is not sent on a response you do not want indexed.
Next.js metadata alternates.canonical
On the App Router I do not hand-write the link element. Next.js renders it from the metadata object or from generateMetadata. The generateMetadata reference shows alternates.canonical as a path or as an absolute URL. A path is composed with metadataBase. An absolute URL ignores metadataBase. A relative path with no metadataBase fails the build.
The root layout on this site sets metadataBase to the site origin. A page then sets the path, slash-free, matching the sitemap and the internal links:
import type { Metadata } from "next";
export const metadata: Metadata = {
alternates: {
canonical: "/blog/canonical-tags-explained",
},
};
metadataBase supplies the origin, so the tag in the HTML is absolute. That is the opposite of pasting a root-relative href into the document. Google's warning about relative canonicals applies to the HTML that is served. The path in alternates.canonical is source. The rendered href still has to be the absolute production URL.
A route whose canonical depends on a param uses generateMetadata. This site's blog does that: the slug comes from the file, and the metadata helper sets alternates.canonical to /blog/ plus that slug. The shape is:
import type { Metadata } from "next";
type Props = { params: Promise<{ slug: string }> };
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = await params;
return {
alternates: {
canonical: `/blog/${slug}`,
},
};
}
The canonical is the path of the page that should be stored. It is not the raw request URL. A request URL includes tracking parameters, and a canonical of ?utm_source=newsletter is a different URL per campaign. I do not append a trailing slash. This site redirects a trailing slash back to the slash-free path, and the tag matches the path that returns 200.
generateMetadata on a prerendered page is resolved at build time, so the tag is in the initial HTML. I do not want a client component to be the only place the canonical is set. Next.js shallowly merges metadata from the root layout down to the page, and a child alternates object replaces the parent one. I set a default on the root layout and the real path on the page, so the page's canonical is the one that ships. I do not also add a hand-written <link rel="canonical"> in the layout. That is two declarations.
Self-referencing canonicals
A self-referencing canonical is the preferred URL pointing at itself. Google asks for that element on the canonical page, not only on the duplicates. I use it on every URL I want indexed.
It confirms a choice. It does not create one. The URL in the tag, the URL that returned 200, the URL in the sitemap, and the URL in the site's own links should be the same string. A self-reference on a URL that 301s elsewhere is not that confirmation. The tag belongs on the final URL. A self-reference that includes a query, a slash the rest of the site does not use, or a host the certificate does not match is a second URL with a tag on it.
Duplicates point at that same absolute URL. They do not point at themselves. A copy that self-references is stating a preference for itself. If every copy does that, each one has been declared canonical. The pages are the same and the declarations disagree, which is how Duplicate, Google chose different canonical than user starts. A set of copies with no tag at all is the other row, Duplicate without user-selected canonical, because no copy stated a preference Google could see.
Search Console canonical statuses
The Page indexing report explains why a URL is not indexed. Google's help page says a page marked duplicate or alternate is usually a good outcome: the canonical was found and indexed. You can see which URL that is in the URL Inspection tool. I do not try to get every duplicate out of these rows. I try to get the canonical of each important page indexed.
Figure 2. Three rows. No declared preference, an alternate that agrees, or a declared preference Google did not follow.
| Report row | What the help page says | What I change |
|---|---|---|
| Duplicate without user-selected canonical | The page is a duplicate, and it does not indicate a preferred canonical. Google chose the other page and will not serve this one. Not an error. | If Google's URL is the one you want, leave it, and add a tag so the choice is explicit. If it is not, declare the canonical and make the pages substantially different when they should not be a cluster. |
| Alternate page with proper canonical tag | The page is an alternate, such as AMP or a mobile and desktop pair, and it points at the canonical, which is indexed. Nothing to do. Language alternates are not this row. | Confirm the indexed URL is the one you want in results. Do not clear the row by noindexing the canonical. |
| Duplicate, Google chose different canonical than user | The page is marked as canonical for a set of pages, but Google indexed a different URL. | Inspect the Google-selected URL and the user-declared URL. Align the tag, links, redirects, and sitemap. The declared URL has to be similar to the page. |
Duplicate without user-selected canonical
The help text is specific. This page is a duplicate of another page, although it does not indicate a preferred canonical page. Google has chosen the other page as the canonical, so this URL is not served. The row is working as intended, because Google does not serve duplicate pages.
The duplicate without user selected canonical query is this row. The hyphens are how the report writes it. I inspect the URL and read Google-selected canonical. Two outcomes follow, and both are in the help text.
If Google chose the URL I wanted, I can leave the row alone. I still add an explicit canonical on the copies and a self-reference on the chosen URL, so the next duplicate is not another guess. The sitemap lists the chosen URL only.
If Google chose the wrong URL, I mark the canonical I want, on this page and on the other copies, and I point internal links and the sitemap at it. If I believe this page is not a duplicate of the URL Google chose, the help page says to make the content differ substantially. The troubleshooting page is about that second case: clustered pages have to be different enough to leave the cluster. It also says re-evaluation can take up to two weeks after a content fix, and that pages split out faster when the difference is clear. Request Indexing exists, and it is quota-limited, so I use it for the important URLs rather than every duplicate.
A missing tag is not the only way to land here. A tag in the body, a tag Google cannot parse because the head is broken, or a tag on a URL Google never fetched, is a preference Google does not have. Fetch the URL and view the source. The element has to be in the head of the response, not only in a rendered panel after a click.
Alternate page with proper canonical tag
The help page's definition is narrower than the way the row gets discussed. This page is marked as an alternate of another page. The examples are an AMP page with a desktop canonical, a mobile version of a desktop canonical, or the desktop version of a mobile canonical. The page correctly points to the canonical page, which is indexed, so there is nothing you need to do. Alternate language pages are not detected by Search Console.
The query alternative page with proper canonical tag is the same row, with the extra vowel people type. I do not treat the row as a defect to be cleared. If Inspection shows the canonical I want, and that canonical is indexed, I stop. Clearing it would mean indexing a copy.
I still open a sample. A CMS can mark a URL as an alternate of a URL I did not choose, which the troubleshooting page lists under incorrect canonical elements. If the declared target is a redirect, a 404, or a page I do not want in results, I fix the target. I do not add noindex to force a different member of the cluster. The specify-a-canonical page says not to use noindex to prevent selection of a canonical within one site, because it blocks the page from Search. rel="canonical" is the tool they name instead.
Language versions are a different mechanism. Pages are duplicates only when the primary content is in the same language. Real translations are not this alternate row. Regional copies in the same language, such as a US URL and a UK URL with the same body, need a canonical and hreflang. That is the combination the canonicalization page describes. I am not writing that setup out here.
Duplicate, Google chose different canonical than user
This page is marked as canonical for a set of pages, but Google thinks another URL makes a better canonical. Google indexed the page it considers canonical, not this one.
The help page's check is four looks, which I follow in order:
- URL Inspection, Page indexing, Google-selected canonical.
- The same panel, user-declared canonical.
- The current page, the user-declared URL, and the Google-selected URL, in a browser.
- Read the mismatch. Google thinks the tested page is a duplicate of the Google-selected URL, not of the URL you declared.
Two cases in that help text change the fix. If the Google-selected canonical is the tested page, Google does not think this page is similar to the others. If the user-declared canonical is not similar to the current page, Google will not choose it. A duplicate has to be similar to the canonical. Declaring a homepage, or a category, as the canonical of an unrelated article is a declaration Google's own definition rejects.
When the pages are similar and Google still prefers another URL, I look for a stronger signal pointing the other way. The usual ones:
- Internal links use the other URL. The specify-a-canonical page says to link to the canonical, not to a duplicate. I change the templates.
- A redirect points somewhere else. A redirect is a strong signal that its target should be canonical. A tag aimed at a different URL is a contradiction. I make the redirect and the tag name the final 200.
- The sitemap lists the other URL. Sitemap inclusion is weak on its own and convincing when the tag agrees with it. I list one of them.
- The declared URL is HTTP, and the live site is HTTPS, or the declared URL is a host the certificate does not match.
- The declared URL redirects, returns a client error, or is
noindex. That is the next section.
The troubleshooting page also names causes that are not a typo in the tag: the other URL is the more useful page, a CMS plugin wrote a canonical you did not intend, a server returns one site's content on another host, or a compromise injected a cross-domain canonical. I read the HTML before I assume the tag I remember deploying is the tag Google fetched. After the signals name one URL, the same page says Google might hold pages in a duplicate cluster for up to two weeks after a content fix. I am not treating that note as a promise that a corrected tag is honored on a timer.
Common canonical tag mistakes
A canonical that is not a 200
The URL in the tag should be the URL you want stored. That URL should return 200, should be indexable, and should be the URL your links and sitemap already use.
A canonical pointed at a redirect asks Google to prefer an address whose own signal says to go somewhere else. On the specify-a-canonical page, redirects are listed ahead of rel="canonical", and both are called strong signals. Point the tag at the final URL that returns 200. The help page's separate row, Page with redirect, is the redirecting URL itself: a non-canonical URL that redirects is not indexed. The target might be. I still do not canonical-tag the hop. The 301 vs 302 post is how I pick the status, and why a removed URL with no replacement is a 410 rather than a canonical to the homepage.
A canonical pointed at a 404 or a 410 names a URL that is not a page. There is nothing there to be the representative copy.
A canonical pointed at a noindex URL, or noindex on the URL you wanted to keep, blocks that URL from Search. Google's specify-a-canonical page says this directly: do not use noindex to choose which duplicate is canonical inside one site. Use the link annotation. noindex remains the right tool for a URL that should not be a search result at all, such as a cart, which is a different decision from consolidation.
Multiple canonicals
One page, one preferred URL. The specify-a-canonical page says not to declare different URLs with different techniques, and that the link element plus the HTTP header is an easy way to do it by accident.
The versions I look for:
- Two
rel="canonical"elements in one head, from a plugin and a theme, or from a layout and a hand-written tag. - A
Linkheader and a link element that disagree. - A sitemap
locthat is not the href in the tag. - A canonical that says one host, and a permanent redirect that sends people to the other.
I keep a single statement. On WordPress that means one component owns the tag. I have not opened a plugin screen for this article. The audit is the response: view source, count the elements, delete the extra one.
Relative URLs and the wrong host
Google accepts a relative canonical and recommends you do not use one. A root-relative path is their published bad example. A scheme-relative URL and a path with no leading slash are easier to resolve against whatever host fetched the page, including a staging host that was left crawlable.
The Next.js path in alternates.canonical is safe only because metadataBase is the production origin and the rendered href is absolute. A metadataBase of http://localhost:3000, or of a preview host, will emit that origin into the canonical if that build is what gets crawled. I set metadataBase from the production site URL.
The canonical also drops the fragment. Google does not support a fragment as a canonical. #section is not a different page, and it is not a pagination marker. Tracking parameters stay out of the href. The canonical is the clean URL, not the campaign URL that landed in the access log.
Pagination canonicals to page 1
Google's pagination page says to give each page in a sequence its own URL, such as ?page=2, because each page is a separate page. The same page says not to use the first page of a paginated sequence as the canonical. Each page gets its own canonical URL.
Pointing page 2, page 3, and the rest at page 1 tells Google those URLs are duplicates of page 1. The links on page 2 are not on page 1. Products or posts that only appear later in the sequence become harder to find, which is the problem that page is written to avoid. Link the sequence with <a href> to the next page. Google no longer uses rel="next" and rel="prev". A link back to page 1 from the later pages is a hint that page 1 is a good landing page. It is not a canonical.
Filters and sort orders are the other decision, and it is not "canonical everything to page 1" either. The pagination page says to keep those variations out of the index with noindex or robots.txt. A canonical from ?orderby=price back to the category is a hint, and that page treats it as the weaker option. Shop URL types, including pagination that keeps its own canonical, are in technical SEO for ecommerce.
What I do not use a canonical tag for
A tag does not retire a URL. If the old path should stop answering, I redirect it or I return 410. Canonical-tagging unrelated URLs at the homepage fails the help text: Google will not choose a canonical that is not similar to the page. Spam paths on this site return 410. That cleanup is how I removed hacked spam URLs from Google.
A tag does not replace hreflang. It also does not stop a syndication partner from indexing their copy. The troubleshooting page says the canonical element is not the recommended tool for that, because the partner's page is often very different, and the effective fix is for the partner to block indexing. Two articles that only share a topic are a content decision. Canonicalizing one of them fits when they are the same document.
FAQ
Is a canonical tag a directive?
No. Google's canonicalization page says a canonical preference is a hint, not a rule. Redirects and the rel="canonical" annotation are strong signals. A sitemap entry is a weak one. Internal links and HTTPS are part of the same choice. When those signals name different URLs, Google can index a URL other than the one in the tag.
What does Duplicate without user-selected canonical mean?
Search Console found a duplicate and did not find a preferred canonical on that URL, so it chose another page and will not serve this one. The help page says that is not an error. Inspect the URL. If the chosen page is the one you want, you can leave the row and still add an explicit tag. If it is the wrong page, declare the canonical you want, or make the content substantially different when the two URLs should not be a cluster.
What does Alternate page with proper canonical tag mean?
The report name is Alternate page with proper canonical tag. Alternative page with proper canonical tag is the same row as a search. The help page describes an alternate, such as AMP or a mobile and desktop pair, that points at a canonical Google has indexed. There is nothing to do when that canonical is the URL you want. Language alternates are not listed in this row.
Why does Google choose a different canonical than the user?
The row Duplicate, Google chose different canonical than user means you declared a canonical and Google indexed another URL. Inspection shows both. Common causes are internal links or a redirect or a sitemap entry aimed at the other URL, a declared URL that is not similar to the page, or a declared URL that redirects, 404s, or is noindex. The tag is still a hint.
Should paginated pages use a canonical to page 1?
No. Google's pagination page says not to use page 1 as the canonical for the sequence. Give each page its own URL and its own canonical, and link the pages with <a href>. Filters and alternate sort orders are a separate decision, covered in technical SEO for ecommerce.
Does every indexed URL need a self-referencing canonical?
Google recommends the self-referential element on the canonical page itself. I include one on every URL I want indexed, absolute, and identical to the sitemap and the internal links. Duplicates point at that URL. They do not point at themselves.
If you want the cluster checked
I read a canonical as one preferred URL, repeated in the tag, the links, the redirects, and the sitemap. Search Console rows tell me whether Google's choice matches that URL. They do not ask me to index every duplicate.
That pass is part of technical SEO services. Send the Search Console page-indexing export, or the URL you wanted and the URL Google kept. I start by viewing the source of both.
