Is there a way to remove the “/collections/xxxxxx” after you click from a collection?
So the URL routing in Shopify is not flexible, but you can easily change the internal linking.
Just find something like this in theme code:
Then remove the **| within: collection** bit so you are left with:
```css
Typically you'd find that within your collections.liquid somewhere - but every theme is a bit different, it may be in a nested snippet or something else. Easiest way I find is to use the Bold theme search extension and find "within: collection" usually that does the trick. Then surgically find/replace.
The effect of this is that collection pages will no longer link to **/collection/abc/products/xyz pages** and instead they'll link directly to **/products/xyz** pages. The down-side is you loose breadcrumbs and need a bit of customization to get them back.
Personally I prefer doing this on most Shopify stores, as it sends a stronger signal about which pages are important (canonical tags can a bit weak and get ignored by Google), it helps internal pagerank/link equity flow, helps simplify reporting etc. Technically the dupe pages will still exist and be accessible to direct type in traffic - but with no internal links they should eventually disappear if they happen to be indexed in Google. Should sort out those errors in Ahrefs too.
Just a side-note with SEO tools; it's important to *understand the context and why* you're fixing things. Simply taking automated audit reports like that at face value, is okay but can sometimes lead you to fix technical things that are really not big problems in the scheme of things.
Hi Kieran, I have carried out this process for better SEO however like you have stated i have lost breadcrumbs so google thinks that there are no internal links to all the products. What is a solution to fix this internal linking ? https://bingleyfencing.co.uk/
I have a bit of code experience but i have husband to help me but i am unsure of how to fix? Or if i need to …
Removing the within collection has had positive impact on SEO but obviously this has kicked up this error !