Seems to be not working product.url | within: collection

Highlighted
Tourist
9 0 0

Hello and good day,

I'm working on this website and I want to redirect the user to the collection page if they clicked a product. already using the {{ product.url | within: collection }}.

But what happened is it's redirecting to /product page where the collection.products / collections.all.products don't show the collections.

0 Likes