BUTTON NOT ROUTING

tobitobin
New Member
4 0 0
<div class="card-feautue-button">
<a href="{{ product.url | within: collection }}">
</a>
</div>
This is a button that I would like to route to the product.url or product-template.
 
console.log("{{ product.url}}") returns /products/no-20
 
I have this same set up in the product.featuredImage and product.title that is working perfectly but when I click the button above the console error is
Uncaught TypeError: Cannot read property 'match' of undefined
0 Likes