Get Url Query In Liquid

[Solved] Get Url Query In Liquid | Objectivec - Code Explorer | yomemimo.com
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

Answers related to get url query in liquid

Code Explorer Popular Question For Objectivec