Why are unwanted collections appearing in my product links?

Hi,

I am having trouble figuring out why the links to my products have collections I don’t have. For example how do I remove the ’ Kitchen-accessories ’ from the link, I no longer have this collection.

a.com/collections/kitchen-accessories/products/artisanal-chain-earrings-white-topaz

any help is greatly appreciated.

Hi @Elkna ,

It was added in the code on the collection page, if you want to remove it you need to go to the product display code and change this.

{{ product.url | within: collection }} => {{ product.url }}

Or you can send me the code of sections/product-template.liquid file, I will guide you next.

Hope it helps!