Notifications
Clear all

Shopify /collections/ URLs "dilemma"...

2 Posts
2 Users
0 Likes
240 Views
James Campbell
(@aldesylcen)
Posts: 50
Trusted Member
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?
 
Posted : 24/08/2021 4:54 pm
Nate Olsen
(@nateolsen)
Posts: 249
Illustrious Member Admin
 
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 
 
Posted : 24/08/2021 4:56 pm
Share: