← Back to blog

Ecommerce SEO · October 27, 2026 · 8 min read

Shopify Duplicate Product URLs and How to Fix Them

Shopify serves every product at more than one URL and canonicalises the short one, but Google can override that when your theme's links disagree. The fix is in the theme, not in more tags.

By FluxWriter

Shopify Duplicate Product URLs and How to Fix Them

Shopify duplicate product URLs come from the platform itself: every product is reachable at both /products/handle and /collections/anything/products/handle, and both return a normal 200 page. Shopify already writes a canonical tag pointing at the short path, which is why most stores never notice anything wrong. Trouble starts when the theme's internal links point at the long version instead, because internal linking is one of the signals Google weighs when it decides which URL to index. This walks through where the duplicates come from, why the canonical tag alone does not settle the argument, and what to change in the theme.


Shopify Serves Every Product At More Than One Address

Shopify's routing gives each product a bare path, /products/rain-jacket, and a collection-scoped path for every collection that product belongs to. A jacket sitting in Outerwear, New Arrivals and Sale has four working URLs before you count anything else. They are not redirects and they are not errors. Each one renders the full product template, with the same title, the same description, the same images and the same price.

That is deliberate. The collection-scoped path lets the theme show a breadcrumb and a "back to Outerwear" link that knows where the shopper came from. It is a merchandising feature, not an accident, and Shopify has no admin setting to switch it off. You cannot delete these URLs, so every fix in this post is about which one you point at, not about making the others disappear.

On a stock theme, Shopify's canonical_url object outputs the bare /products/handle path on all of them. View source on a collection-scoped product URL and the canonical tag in the head should name the short version. If it names itself instead, someone has replaced the canonical tag with hand-written Liquid, and that is the first thing to put back.

The Canonical Tag Is A Signal, Not An Instruction

Google treats rel="canonical" as a strong hint about which version of a page you prefer. It is not a command. Google runs its own clustering pass across pages it considers duplicates, picks one URL to represent the group, and your canonical tag is one input to that decision alongside internal links, the sitemap, redirects, external links and which URL looks tidier.

Most of the time those inputs agree and the tag wins. The failure case is an argument. If your canonical says /products/rain-jacket but three hundred internal links across your collection pages, related-product blocks and search results all point at /collections/sale/products/rain-jacket, Google is reading two contradictory statements about which page you care about. Sometimes it sides with the links.

When that happens you get a product indexed at a URL that contains a collection name. It still ranks and it still converts. The cost is that the indexed URL is now tied to a merchandising decision: collections get renamed, emptied and retired at the end of a season, and the address Google settled on rides along with that, while the page you actually wanted indexed has spent months accumulating nothing.

Your Theme Decides Which URL Google Crawls Most

The Liquid filter responsible is within. A theme that renders product links as {{ product.url | within: collection }} produces collection-scoped URLs everywhere a product card appears. Drop the filter and {{ product.url }} returns the bare path. That single change is most of the fix on most stores.

Open the theme code editor and search every .liquid file for within:. Typical hits are the product card snippet, the featured collection section, related or recommended products, the search results template and sometimes the cart line items. Older themes lean on it heavily; newer ones often do not use it at all, which is worth confirming before you rewrite anything.

There is a real trade you are making. Removing within removes the collection context, so themes that build a breadcrumb from it will fall back to a generic one, and the "next product in this collection" arrows some themes render will stop working. Decide whether that navigation matters before you strip it out. On most stores it is a small loss against a clearer index; on one where shoppers browse long curated collections, it may not be.

Also check what your apps emit. Review widgets, upsell blocks, "recently viewed" scripts and merchandising apps all inject product links, and they do not necessarily follow your theme's convention. So does your product JSON-LD: if the url field in the structured data names a collection-scoped path, that is another vote against your own canonical.

The URL Shapes A Shopify Store Actually Emits

The table below assumes a theme that still outputs Shopify's built-in canonical tag, which is the default. If yours has been customised, verify the canonical column yourself rather than trusting the pattern.

URL shape Server response Canonical usually points to What to do about it
/products/rain-jacket 200, full product page Itself Link to this one everywhere
/collections/outerwear/products/rain-jacket 200, full product page /products/rain-jacket Remove the theme links that generate it
/collections/all/products/rain-jacket 200, full product page /products/rain-jacket Same fix; often produced by search templates
/products/rain-jacket?variant=41234567 200, variant preselected /products/rain-jacket Leave it, this one is working correctly
/collections/sale/products/rain-jacket?variant=41234567 200, variant preselected /products/rain-jacket Disappears once the theme links are fixed
/products/rain-jacket?utm_source=newsletter 200, full product page /products/rain-jacket Leave it, tracking parameters are handled

The pattern worth reading off that table is that Shopify's own defaults are mostly correct. The sitemap lists bare product paths only, and the canonical tag names the bare path. The two things that go wrong are theme links and hand-edited head tags, and both were added by you or a previous developer.

Blocking Or Redirecting The Collection Paths Makes It Worse

The instinct on seeing thousands of collection-scoped URLs in a crawl is to block them. Shopify does let you edit robots.txt.liquid, so adding Disallow: /collections/*/products/ is technically available. Do not.

A blocked URL cannot be crawled, and a URL that cannot be crawled cannot have its canonical tag read. You would be removing the exact instruction that was consolidating those pages onto the right one. Blocked URLs can still end up indexed on the strength of links alone, and now they are indexed with no canonical signal attached and no content Google can see.

A noindex tag has a different problem. Liquid can tell the two URL shapes apart, because the collection object is only populated on the scoped path, so a noindex on that shape alone is technically possible. Do not ship it. That page already canonicalises to the bare path, and adding a noindex gives Google two contradictory instructions. Leave the canonical to do the job.

Redirects are the other tempting lever. Before planning around them, check what pattern matching your setup supports, because the admin redirect tool is built for specific paths rather than wildcards, and a redirect firing on the collection-scoped path also intercepts shoppers mid-browse. The question to ask is whether you need one at all once the links stop being generated.

Search Console Tells You Which URL Google Actually Picked

Open Search Console and run URL Inspection on a handful of products, five is usually enough to see the pattern. The result shows both a user-declared canonical, which is your tag, and a Google-selected canonical, which is the decision. When those two disagree on more than one product, the internal link problem is real and worth the theme work.

The Page indexing report gives you the scale. Look for "Duplicate, Google chose different canonical than user" and "Alternate page with proper canonical tag". The second one is normal and healthy, it means the system worked. The first one is the count of products where your links outvoted your tag. Also open the Links report and check the top internally linked pages; if collection-scoped product paths dominate that list, you have your answer without inspecting anything.

Once you ship the theme change, expect this to settle slowly. Google has to recrawl the linking pages before it sees the new link targets, then reprocess the products. As a rough rule, assume weeks rather than days for a small catalogue and a couple of months for a few thousand products, and resist making a second change while the first one is still propagating.

FAQ

Does Shopify cause a duplicate content penalty?

No. Google's long-standing guidance is that ordinary duplication like this is a selection problem, not a punishment, and Shopify's canonical tag is exactly the mechanism for resolving it. What you are fixing is which URL gets chosen, not a penalty that needs lifting. Stores with this problem usually perform much as they would anyway, just at a URL they did not intend.

Can I turn the collection-scoped product URLs off completely?

Not from the admin. They are part of Shopify's routing and they will keep resolving whether or not anything links to them. The realistic goal is that nothing internal points at them, the sitemap ignores them and the canonical tag names the bare path, at which point Google has no reason to prefer them.

Is this wasting crawl budget on my store?

Probably not, if your catalogue is small. Crawl budget becomes a binding constraint at scale rather than at a few hundred products, so on a typical store the indexing choice matters far more than the crawling volume. If you are running tens of thousands of products across many collections, the multiplication gets large enough to take seriously on its own.

The Practical Takeaway

Spend the first twenty minutes auditing rather than editing. Search the theme for within:, list which templates use it, then inspect five product URLs in Search Console and note where the user-declared and Google-selected canonicals disagree. If they agree everywhere, you do not have this problem; stop there. If they disagree, remove the filter from the product card and related-product templates first, since those generate the most links, leave the breadcrumb logic alone until you have decided whether you want it, and check that your structured data emits the bare path. Re-inspect the same five URLs a month later. Start by opening the theme code editor and searching every .liquid file for within:. The list that comes back tells you how much work this actually is.



← All posts