Your Shopify canonical URL is written for you on every product page, and most merchants read that as the duplicate-URL problem being handled. It isn’t handled. It’s declared — and a declaration only works if nothing else on your store is saying the opposite.
Canonical problems are invisible from the front end — the page looks fine. Plug In SEO flags the pages where the signals disagree, so you find them before Google picks the wrong one.
Here is the short version, and it is the part most Shopify canonical URL advice leaves out: a canonical tag routes, it doesn’t protect. In other words, it tells Google which version you would prefer. However, it does not stop the other versions existing. Nor does it stop Google crawling them. Above all, it does not override the other signals your store is sending.
Meanwhile, on most Shopify stores, one of those other signals points somewhere else entirely. Your theme is doing it. Furthermore, you never asked it to, and it happens on every collection page you have.
Shopify gives every product more than one address
A product on Shopify lives at a clean URL: /products/linen-shirt. But Shopify also lets any product be reached through a collection. When that happens, the URL changes shape.
Importantly, this is a deliberate platform feature rather than a bug. Shopify’s Liquid language has a filter called within. Moreover, Shopify’s own documentation describes it as generating “a product URL within the context of the provided collection.” Their example is exact:
/products/draught-of-immortality
→ /collections/sale-potions/products/draught-of-immortality
So a product sitting in five collections is reachable at six addresses. Consequently, a catalogue of 500 products across a dozen collections can resolve to several thousand URLs. All of them serve the same content.
You also can’t redirect your way out of the structure. For instance, Shopify’s help documentation states plainly that “you can’t redirect URLs that use fixed Shopify paths: /products, /collections, /collections/all.” In short, the paths are part of the platform. The same constraint shapes how Shopify handles faceted navigation.
A canonical is a strong signal, not an instruction
Shopify themes handle the above by emitting a self-referencing canonical tag. It points every variant back to the clean /products/ URL. That is the right thing to do, and therefore this usually works.
But notice the word Google uses for it. In its canonicalization documentation, Google calls rel="canonical" “a strong signal that the specified URL should become canonical”. Crucially, it then ranks that signal alongside others of varying weight:
rel="canonical" annotation is a strong signal. Inclusion in a sitemap is only a weak signal. Google weighs them together and picks a winner.Source: Google Search Central, Consolidate duplicate URLs
Signals get weighed. Instructions, by contrast, get obeyed. That distinction matters, because it means a canonical tag can lose an argument. As a result, if Google picks a different URL than the one you declared, the page it indexes is not the page you optimised.
Your theme is probably arguing with your canonical
This is the part that turns a harmless technical quirk into a real problem.
Tucked into Google’s best practices for canonicalization is this line: “link consistently to the URL that you consider to be canonical helps Google understand your preference.” In other words, internal linking is part of how Google decides. Admittedly not the biggest part, but part.
Now consider what a Shopify collection grid does. Many themes build their product links with product.url | within: collection, because it keeps breadcrumbs and “back to collection” behaviour working. Consequently, every product tile on that page links to the collection-scoped URL. This is also why collection page SEO deserves its own attention.
So your store sends Google two messages at once. On one hand, the canonical tag says index the clean product URL. On the other hand, every internal link on your most-crawled pages says this collection-scoped URL is the one I point at.
In effect, you are arguing with yourself in markup, across your whole catalogue. Usually the canonical wins, because it is the stronger signal. Occasionally, though, it doesn’t. Besides, “usually” is a strange thing to build a catalogue on when the fix is one line.
How to check your own store in two minutes
You don’t need a crawler for the first pass.
- Open any collection page on your store.
- Right-click a product tile and copy the link address.
- Look at what you copied. If it reads
/collections/something/products/something, your theme is usingwithin. If it reads/products/something, you are already fine.
Then confirm the other half. Open a product page through a collection link, view source, and search for rel="canonical". Naturally, it should point at the clean /products/ URL. If instead your theme emits a self-referencing canonical on the collection-scoped URL, that is the more serious problem. Therefore fix that one first.
Fortunately, Dawn and most recent Shopify themes already link to the clean URL. Older premium themes and heavily customised ones frequently do not. Likewise, a theme that behaved correctly two years ago may not, once a developer has touched the collection template.
The fix is one Liquid change
In your collection templates and any section that renders a product grid, find this:
{{ product.url | within: collection }}
And make it this:
{{ product.url }}
That’s it. Afterwards, your internal links point at the same URL your canonical tag nominates. As a result, the two signals agree instead of competing.
Two cautions before you do it. First, test on a duplicate theme, because some themes use the collection context for breadcrumbs or “next product” navigation. Removing it can therefore change that behaviour. Second, check every template that renders products, not just collection.liquid. Search pages, featured-collection sections and related-product blocks often render their own grids with their own linking.
What this doesn’t fix, and what it does
Being honest about the ceiling matters here, because this is a hygiene fix rather than a growth lever.
Fixing your internal links will not make a page rank that wasn’t going to rank. Duplicate URLs are not a penalty, and Google is generally good at resolving them. Instead, the fix stops you spending crawl activity on URLs you don’t want indexed. Additionally, it stops your internal link equity spreading across several addresses for one product. Finally, it removes the chance that Google indexes a collection-scoped URL you never meant to publish. For the broader version of that argument, see our guide to what Shopify blocks from crawlers by default.
On a small catalogue, admittedly, the upside is modest. But on a few thousand products across a dozen collections, you remove thousands of redundant URLs. Google then has far less to work through before reaching the pages you care about.
Ultimately, the harder part is not the fix. Rather, it is finding out whether you have the problem at all: across every template, after every theme update, on a catalogue too big to spot-check. That is exactly the sort of thing Plug In SEO is for: it audits the stored, on-page signals across your catalogue and flags the pages where something has gone wrong, including the ones you would never have thought to open.
Frequently asked questions
Does Shopify handle canonical URLs automatically?
Shopify themes emit a self-referencing canonical tag by default, pointing collection-scoped product URLs back to the clean /products/ version. That part is automatic. What isn’t automatic is making sure nothing else on your store contradicts it — most notably your internal links, which many themes point at the collection-scoped URL instead.
Will duplicate Shopify URLs get my store penalised?
No. There is no duplicate content penalty for this. Google selects one version to index and filters the others out. The cost is wasted crawling, diluted internal linking, and the risk that the version Google picks isn’t the one you optimised — not a penalty.
Can I remove the /collections/ prefix from my Shopify URLs?
No. Shopify’s documentation confirms that /products, /collections and /collections/all are fixed paths that can’t even be redirected. You control the handle at the end of the URL and nothing before it. The fix is to stop linking to the collection-scoped version, not to try to eliminate it.
Is rel=canonical a directive or a suggestion?
Google describes it as “a strong signal” rather than a directive, which means Google weighs it against other signals and can choose a different canonical than the one you declared. Redirects carry similar weight, sitemap inclusion carries less. Consistent internal linking is listed in Google’s best practices as something that helps it understand your preference.
How do I know which Shopify theme templates to check?
Check every template that renders a product grid, not just the collection template. Search your theme files for within: collection — search results pages, featured-collection sections, related-product blocks and recently-viewed widgets all commonly render their own grids and each one can link differently.
Find the signals that disagree
Canonical problems don’t show on the page. Plug In SEO audits the on-page signals across your whole catalogue and flags the pages where something is off.

