Conditional ‘Contains’ in Shopify URL

{% if canonical_url contains 'tagged' %}
{% endif %}


Unfortunately the only way to get a decent Fully Qualified URL in Shopify is to call the canonical tag URL, which you can then call the ‘contains’ statement on to regex and subsequently add code accordingly.

Want a Fast Server Like Mine?