So I’m trying to get rid of the duplicate URLs (/collections/collection-name/product/product-name) for my store, and I have read that the solution is to remove within: collection from product-grid-item.liquid. However, this isn’t working in my theme which is modified version of Impulse. Following is a list of other areas where I found within: collection in. Can you please advise removing which one should solve my issue? Thanks so much!
These changes will change the links that use the collections path in the links to products. If you have places where the urls are still using the collections path, then you have additional templates needing editing or you’re working in the incorrect theme.
Note that this change doesn’t prevent the urls with collections paths from working, it only changes the links to those urls.