How to extract URL from <a href=""> in Liquid

I’m trying to use {{ product_type | url_for_type }} inside a but it returns a link tag.

is there a way to extract the URL from the href=“” and return it inside the ?!

I’ve tried with strip_html but it doesn’t work

{{ product_type | url_for_type }}
// Returns: video

{{ product_type | url_for_type | strip_html }}
// Returns: "video" not what's inside href=""

Hi @crusco , have you tried using:

{{ product.url}}

Hi @crusco ,

Can you please share your store URL and take a screenshot of error? So I will check and provide a solution here.

Greetings!