Removing /collections/ name from the collection URLs (Theme Refresh)

hello indeed I want to do this I leave you the example below because in my case I find that the / collection / is of no use

URL of the current collection: / maboutique/ collections / activities

and I would like to change it to: / maboutique / activities

Hi @error401
Please remove within: collection from product.url, You will probably find it in this main-collection-product-grid.liquid or similar section
Thanks!

1 Like

In fact I found the file main-collection-product-grid.liquid but once inside I didn’t find within: collection from product.url it’s not easy to find. This is what I think it is:

I forgot to specify that I am a beginner, as much detail as possible is welcome, thank you for your responsiveness