This is a known issue, and there are several chats on this topic.
Shopify (irrespective of the theme) automatically includes the collection name in the product URL. For example, if a product is part of 3 collections, Shopify creates 3 distinct URLs for the same product. Example:
domain/collection/collection name 1/product name 1
domain/collection/collection name 2/product name 1
domain/collection/collection name 3/product name 1
This structure is correct: domain/products/product name 1. The URL remains unchanged no matter from which collection you navigate to the product page.
All chats agree on the solution: remove “within collection,”, and the issue is resolved.
My problem is that I cannot locate this part. My theme is Out of the Sandbox Turbo and there is no:
product-card-grid.liquid. ; product-grid-item.liquid**;** collection.liquid.
I would really appreciate it if someone could point out the location of “within: collection” in Out of the Sandbox Turbo.
Thanks in advance.