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. 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. 2

    If the canonical is correct, Shopify is handling it.

  3. 3

    Update internal links to use {{ product.url }} instead of collection-relative URLs.

  4. 4

    Check your navigation menus — they should link to /products/product-name.

  5. 5

    Verify your sitemap only includes /products/ URLs.

folderlayout/theme.liquid + product templates
<!-- 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 }}"> -->
menu_bookRead Google's official documentationopen_in_new

Related Fix Guides

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