{%- capture contentForQuerystring -%}
{{ content_for_header }}
{%- endcapture -%}
{%- assign pageUrl = contentForQuerystring
| split: '"pageurl":"'
| last
| split: '"'
| first
| split: '.myshopify.com'
| last
| replace: '\/', '/'
| replace: '%20', ' '
| replace: '\u0026', '&'
-%}
{% capture finalurl %}https://{{ pageUrl }}{% endcapture %}
{% if
finalurl contains '?sort_by=' or
finalurl contains '/search?q=' or
(finalurl contains '/collections/' and finalurl contains '/products/')
%}
{% endif %}