This guide answers: collection pages on shopify: avoiding duplicate urls
Collection pages on Shopify: avoiding duplicate URLs
Shopify collection pages create duplicate URLs through nested product paths, filter and sort parameters, and pagination. Learn what to fix in your theme.
By Hannah Wells, Technical SEO, site performance and online stores
· 6 min read
updated

Short answer
Shopify collection pages create duplicate URLs through three mechanisms: product links nested inside collections, filter and sort parameters, and pagination. Shopify already handles part of this with canonical tags and default robots.txt rules. What remains in your hands is the theme code, any custom filters you added, and the collections you actually want indexed.
Key points
- Shopify is not leaving this entirely to you. Three safeguards are in place before you touch anything.
- Liquid is Shopify's template language. In it, the within: collection filter makes a product link point to /collections/collection-name/products/handle instead of /products/handle.
- There are three techniques. Pick according to your access and your situation.
- Check four places, because each one shows a different part of the picture.
Why Shopify collection pages create duplicate URLs: three sources
A collection page looks like one page to a shopper. To a crawler, it is a family of URLs. Three separate mechanisms produce them, and they stack.
Collection-nested product paths
By default, Shopify makes every product reachable at two addresses. One is the direct path, such as /products/my-tee. The other runs through a collection, such as /collections/summer-sale/products/my-tee. Same product, same content, two URLs.
This is how Shopify is built. No merchant has to switch it on. If the same tee sits in several collections, it can be reached through each of those collection paths as well.
Filter and sort parameters
Every filter combination adds a parameter to the address, and so does every sort order. /collections/womens?color=red is one URL. /collections/womens?color=red&size=large is another. Add ?sort_by=price-ascending and you get yet another. To a URL, these are all different. To a shopper, they are mostly the same list of products, narrowed or reordered.
Pagination
Each numbered page of a collection has its own address: ?page=2, ?page=3, and so on. These pages appear indexable to Google, and their content is close to the first page of the same collection.
Add the three together and a single collection you meant to create once can spread into hundreds or even thousands of indexable addresses on a large catalogue. That is the shape of the problem. How much it matters for your store depends on how many products, filters and collections you have.
What Shopify already does to handle this
Shopify is not leaving this entirely to you. Three safeguards are in place before you touch anything.
Canonical tags. Shopify adds canonical tags automatically to all page types: products, collections, blog posts and static pages. On a product reached through a collection, the canonical points to the direct path. So /collections/summer-sale/products/my-tee tells search engines that /products/my-tee is the version to keep.
Default robots.txt rules. Shopify blocks filtered and sorted collection URLs by default. The aim is to stop crawlers from following sort_by and multi-combination filter parameters, which also saves crawl budget.
Self-referencing canonicals on paginated pages. Shopify does not point page 2 back to page 1. Page 2 canonicalizes to itself. That is a deliberate choice: each paginated page is treated as its own page, not as a copy of the first.
A caveat matters here. A canonical tag is a hint, not a lock. The canonical tags alone do not stop filtered and sorted collection pages from being indexed. That is why the default robots.txt rules and the three manual checks below still matter.
What you still need to handle manually
Three situations stay under your control.
Internal links built with within: collection
Liquid is Shopify’s template language. In it, the within: collection filter makes a product link point to /collections/collection-name/products/handle instead of /products/handle. If your product card templates use it, every product tile in every collection links to a nested URL.
Shopify still adds the canonical, so this is not a disaster. But you are sending crawlers down unnecessary paths on purpose. Removing the filter is the cleanest fix, because it stops creating the nested links in the first place.
Custom filters
If you added your own filtering, through metafields, a third-party app or an automation tool, do not assume Shopify’s default blocking covers it. Those URLs can stay crawlable. Check what addresses your filters generate and decide for each pattern whether it should be crawled.
Collections that should be indexed
Sometimes a filtered view is a real marketing collection, not an accident. “Bestsellers under $50” is a good example: people may search for exactly that. The default robots.txt rules block filtered URLs, so a page like this will not be crawled unless you unblock it consciously. Decide which filtered views earn a place in search, and treat them as deliberate exceptions.
How to implement the fix, step by step
There are three techniques. Pick according to your access and your situation.
Technique A: remove within: collection from product links
- Open your theme code from the Shopify theme editor, then look in Assets, Snippets and Sections.
- Search for
within: collectionin the product card includes. - Replace the version that uses
| within: collectionwith the plain version, without the filter. - Browse a collection, inspect a product link, and confirm it points to
/products/handle.
Result: product links go straight to the direct path, not through /collections/x/products/handle. This is the long-term fix.
Technique B: keep robots.txt blocking filtered and sorted URLs
Shopify does this by default. The risk appears when you customize robots.txt. If you do, make sure Shopify’s blocks for sort_by and multi-filter patterns stay in place. The syntax looks like this:
Disallow: /*sort_by*
Disallow: /*filter*filter*
Afterwards, check the Coverage report in Google Search Console and confirm that filtered collection pages no longer show up.
Technique C: declare parameters in Google Search Console
In Search Console, go to Settings, then URL parameters. Declare sort_by and filter as parameters that do not change content, or as parameters that change content but not the display, where the canonical applies. The idea is that Google crawls the canonical version and ignores the variants. If your Search Console account does not show this tool, rely on techniques A and B.
How to choose: A is the lasting patch, because it removes the cause. B and C are shorter-term measures when you cannot reach the theme code or you are waiting for a redeployment.
How to verify the fix worked
Check four places, because each one shows a different part of the picture.
- Google Search Console, Coverage. Filter for collection pages and watch the number of indexed URLs. A drop in the weeks after the fix is what you are looking for.
- Crawl stats. See whether the crawl activity spent on collection pages goes down.
- Search results. Search
site:your-domain.com/collections/x?, with the question mark, and watch whether parameter URLs fade out over time. - Your theme. Open a collection, inspect a product link, and confirm the href is
/products/x, not/collections/y/products/x.
What nobody can tell you in advance
Some questions have no reliable answer, and any number given for them would be made up.
No official Shopify or Google source says how much crawl budget a typical store saves by removing a given set of filtered URLs. It also cannot be promised that this work lifts rankings. Google does not treat crawl budget as a ranking factor in itself, so cleaning up duplicates is about giving crawlers a clearer map, not about a guaranteed gain.
No reliable figure exists for how many Shopify stores are affected. How long Google takes to reflect your changes varies, and nobody can commit to a timeline. Finally, this is an SEO fix, not a speed fix, so do not expect page load to change.
Other approaches exist, such as redirects at the network edge. They fall outside what is covered here.
Sources
Sources consulted on 03/12/2026: Shopify Collection Page SEO, from 7sea Marketing; Shopify Duplicate Content: Canonical Tags, ?variant URLs, and Pagination, from Kaspian Fuad; Fix Duplicate Content on Shopify Collection Pages, from Ryze; Shopify Duplicate Content: What Is Handled and What Is Not, from SEO Bison; Shopify Duplicate Content: Fix Collection, Tag and Filter URLs, from Pixel2Tech; Shopify Duplicate Content: The Hidden SEO Killer, from Matt Hapgood.


