Question : get url query in liquid
Answered by : salo-hopeless
{%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%}
{%- assign pageUrl = contentForQuerystring | split:'"pageurl":"' | last | split:'"' | first | split:'.myshopify.com' | last | replace:'\/','/' | replace:'%20',' ' | replace:'\u0026','&'
-%}
Source : https://stackoverflow.com/questions/12921697/can-you-pass-values-through-the-url-in-shopify | Last Update : Sun, 15 May 22