Hi @pieterlauryssen ,
You can refer code:
{%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%}
{%- assign pageUrl = contentForQuerystring | split:‘“pageurl”:"’ | last | split:‘"’ | first | split: shop.domain | last |
replace:‘/’,‘/’ |
replace:‘%20’,’ ’ |
replace:‘\u0026’,‘&’
-%}
{%- if pageUrl contains ‘/fr/’-%}
{%- else -%}
{%- endif -%}
Hope it helps!