Include collection name in product page url DAWN 10.0

5 1 2

Hi all, 


In a previous version of Dawn theme, I had edited the card-product.liquid file to include the collection name in the url of the product. So for example: instead of just This was working great for displaying my popup forms on only some products from collections, etc. 


The code I had changed in card-product.liquid was line 108: 

{{ card_product.url }}




{{ card_product.url | within: collection }}


This worked beautifully to add in the collection name to the url of the product. 


However, I've just upgraded to Dawn 10.0, made this same change to the file, but it doesn't work the same. 


Any tips? Would the code need to be different? 


Thanks in advance!

Replies 0 (0)