From the collection file replace the code ( Don’t know the exact file but you can search the code in collection files )
{{ product.url | within: collection }}, you will need to remove |within:collection and keep only {{ product.url }} it will remove the collection reference from the URL.
Hey @asajce If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
Hey @asajce
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
You cannot do this but, what you can and should do to improve SEO is prevent Google from crawling and indexing duplicate content. On the Shopify side you can achieve this by picking 1 link format for products and sticking to it. On the Google side and, for more information about this process, see Why Google Penalizes Duplicate Content (and How to Avoid It)