Notifications
Clear all

Shopify /collections/ URLs "dilemma"...

2 Posts
2 Users
0 Reactions
300 Views
James Campbell
(@aldesylcen)
Estimable Member
Joined: 3 years ago
Posts: 51
Topic starter  
So for all of you that use (or work on) shopify pages, you know that from the collections page (shopifys categories page) all the product link go to /collections/producturl which is set to noindex by default and just has a canonical to the actual product page.
I get that Google sees the canonical, but still wonder if its worth it to put a contextual link within the content added below (description of the collection) to actual product page URLs?
I am guessing it has a lot to do with the "dilemma" of "do not put 2 links to "the same" URL twice from the same page, cause Google only reads one"...
Thoughts?

   
Quote
Nate Olsen
(@nateolsen)
Reputable Member Admin
Joined: 5 years ago
Posts: 277
 
I wouldn't add the links in the collection description but you can update the links to the primary version of the URL. Simply Navigate to the product-grid-item.liquid snippet and change the product links from:
<a href="{{ product.url | within: collection }}">
to
<a href="{{ product.url }}">
You will need to do this for both the image link and the text link for the products. But yeah as Ben mentioned above if you're using breadcrumbs it'll mess it all up because most breadcrumbs use the URL as the basis for the breadcrumb structure. Other than that I'm not aware of any other downsides to updating the product URL's in this way though 

   
ReplyQuote
Share: