Development8 min read•Updated: Aug 14, 2026

How to Fix Shopify Duplicate Product URLs (/collections/.../products/...)

By default, nearly all pre-made Shopify themes link to products on collection pages using collection-nested URLs, such as `/collections/mens-shoes/products/leather-oxford` instead of the canonical root URL `/products/leather-oxford`.

While Shopify inserts a canonical tag pointing back to the root product URL, Google treats canonical tags as suggestions—not directives. Linking internally to millions of collection-nested product URLs fractures your site's PageRank, dilutes link equity, and wastes Google's crawl budget.

In this guide, we show you the exact Liquid code modification required to ensure all internal collection links point directly to the primary, canonical product URL.

Why Does Shopify Create Duplicate Collection Product URLs?

Shopify originally engineered collection-nested URLs to allow backward navigation: when a customer viewed `/collections/summer/products/sunglasses`, the store could display breadcrumbs like 'Home > Summer > Sunglasses'.

However, from an SEO perspective, this creates multiple duplicate URLs for every single product (one for every collection the product belongs to, plus the canonical `/products/` URL).

Over time, search crawlers spend valuable crawl budget re-evaluating duplicate variations rather than indexing fresh content.

The 2-Minute Liquid Theme Code Fix

To fix this issue across your entire catalog, you only need to adjust the product URL filter in your theme's product card snippet:

Locate your theme's product grid snippet (typically `snippets/product-card.liquid` or `snippets/card-product.liquid`). Find instances where the link uses `product.url | within: collection` and remove the `| within: collection` filter.

The SEO Impact: What Happens After You Deploy the Fix?

Once internal collection links point to clean `/products/` URLs, 100% of your store's internal link equity flows directly to the canonical product pages.

Over 30 to 60 days, Google Search Console will report a steep decline in 'Duplicate without user-selected canonical' warnings, resulting in higher organic rankings and faster indexation of newly launched products.

Actionable Insights

  • Building an SEO-First Shopify Store
  • TSR eliminates duplicate URLs, cleans up crawl waste, and optimizes structured data to unlock organic search growth.

Conclusion

Fixing duplicate product URLs is one of the highest-ROI technical SEO optimizations available for Shopify stores.

Review our complete technical SEO checklist or partner with The Scale Room's Shopify development team to audit your store's technical foundation.

Want help implementing this? Book a call.

We can turn these frameworks into a prioritized execution plan for your store.

View Case Studies

Related Articles

Development

10 Mistakes That Hurt Your Shopify Store's SEO (2026 Guide)

A practical 2026 guide to the most common Shopify SEO mistakes that hurt rankings, traffic, and conversions, plus how to fix them.

Read Article

Development

How to Optimize Shopify Store Speed (2026 Guide)

A practical 2026 Shopify speed optimization framework covering Core Web Vitals, technical fixes, and ongoing performance monitoring for stronger conversion outcomes.

Read Article