How to Fix Shopify Collection Path Duplicate URLs
errorThe Problem
Shopify creates a second URL for every product in a collection. If your 'Blue Shirt' is in the 'Sale' collection, it exists at both /products/blue-shirt AND /collections/sale/products/blue-shirt. Both URLs show identical content.
trending_upWhy It Matters for SEO
Each duplicate URL dilutes your ranking power. Instead of one strong product page, Google sees multiple weaker versions competing. For stores with 100+ products across multiple collections, this creates thousands of duplicate pages.
buildHow to Fix It
- 1
Check if your theme handles this — view a collection-path URL's page source and search for 'canonical'. It should point to the /products/ version.
- 2
If the canonical is correct, Shopify is handling it.
- 3
Update internal links to use {{ product.url }} instead of collection-relative URLs.
- 4
Check your navigation menus — they should link to /products/product-name.
- 5
Verify your sitemap only includes /products/ URLs.
<!-- Verify canonical points to /products/ URL: -->
<link rel="canonical" href="{{ canonical_url }}" />
<!-- For product links in templates, always use: -->
<a href="{{ product.url }}">{{ product.title }}</a>
<!-- NOT this (creates collection-path URLs): -->
<!-- <a href="{{ product.url | within: collection }}"> -->Related Fix Guides
How to Fix Missing Canonical Tags on Shopify & WooCommerce
Fix missing canonical tags on your Shopify or WooCommerce store. Copy-paste code included. Prevent duplicate content from tanking your SEO rankings.
How to Fix Duplicate Variant URLs on Shopify & WooCommerce
Variant URLs like ?variant=123 create duplicate content that hurts rankings. Learn how to fix them with canonical tags and proper indexing.
Want to check if YOUR store has this issue?
Scan your site for free — get copy-paste fixes in 60 seconds.
searchScan Now — It's Free