Here is the one of odd method to get the values from the query string of URL, but it comes with some coding working, you can it using this link

Answer from Onkar on Stack Overflow
🌐
Shopify
shopify.dev › docs › api › liquid › objects › link
Liquid objects: link
Liquid · Copy page MD · A link in a menu. To learn about how to implement navigation in a theme, refer to Add navigation to your theme. Anchor to · active · boolean · Returns true if the link is active. Returns false if not. A link is considered to be active if the current URL path matches, or contains, the link's url.
🌐
Shopify
shopify.dev › docs › api › liquid › objects › routes
Liquid objects: routes
The all-products collection page URL. The all-products collection is automatically generated by Shopify and contains all products in the store.
🌐
How Commerce
howcommerce.com › shopify-get-current-url
How to get the Shopify current URL? – How Commerce
Check out this helpful guide on getting the current URL of your Shopify store! Learn how to retrieve the URL using Liquid code and JavaScript with this easy-to-follow tutorial. #Shopify #URL #eCommerceTips
🌐
Shopify
shopify.com › partners › blog › liquid-objects
How to Use the Routes and Page_Image Liquid Objects - Shopify
To allow for changes to how URLs are formatted or structured, we've introduced the new Liquid global object routes, which generates variables for specific paths on Shopify stores that can be used instead of hardcoded links.
🌐
GitHub
github.com › Shopify › liquid › issues › 525
Get Current URL · Issue #525 · Shopify/liquid
February 17, 2015 - Shopify / liquid Public · Notifications · You must be signed in to change notification settings · Fork 1.5k · Star 11.6k · New issueCopy link · New issueCopy link · Closed · Closed · Get Current URL#525 · Copy link · gina-gregory · opened · on Feb 17, 2015 ·
Published   Feb 17, 2015
Find elsewhere
🌐
Full Metal Workshop
fullmetalworkshop.com › home › get the shopify url parameters in liquid code
Get the Shopify URL parameters in liquid code - Full Metal Workshop
October 25, 2022 - {%- assign page_url = content_for_header | split:'"pageurl":"' | last | split:'"' | first | split: request.host | last | replace:'\/','/' | replace:' ',' ' | replace:'\u0026','&' -%} {% assign param = blank %} {%- for i in (1..1) -%} {%- unless page_url contains "?" -%}{% break %}{%- endunless -%} {%- assign query_string = page_url | split:'?' | last -%} {%- assign qry_parts= query_string | split:'&' -%} {%- for part in qry_parts -%} {%- assign key_and_value = part | split:'=' -%} {%- if key_and_value.size > 1 -%} {% if key_and_value[0] == 'param' %} {% assign param = key_and_value[1] %} {% endif %} {%- endif -%} {%- endfor -%} {%- endfor -%}
🌐
Shopify
shopify.dev › docs › api › liquid › objects › request
Liquid objects: request
{ "product": { "selected_variant": null, "url": "/products/health-potion" }, "request": { "origin": "https://polinas-potent-potions.myshopify.com" } }
🌐
Shopify
shopify.dev › docs › api › liquid › filters › asset_url
Liquid filters: asset_url
Liquid · Copy page MD · 9 · 1 · string | asset_url · returns string · Returns the CDN URL for a file in the assets directory of a theme. Code · Reset Code · 9 · 1 · {{ 'cart.js' | asset_url }} {{ 'cart.js' | asset_url }} 9 · 1 · ...
🌐
Shopify Community
community.shopify.com › technical q&a
How to navigate to a URL with Liquid Code?
April 2, 2021 - What is the line of code used to navigate to a URL based on some condition, using Liquid Code (at server side) i.e WITHOUT using Javascript? (Here, I am not asking about client-side re-direction) Something example like, if the product is out of stock out navigate to another page … Thanks John
🌐
Shopify Community
community.shopify.com › technical q&a
Using URL Parameters In Liquid
June 9, 2025 - I am creating a metaobject that holds recipes. I want to be able to filter the recipes by ingredients and category. I also want the list to be paginated. From my research, it looks like the best practice is to make an ajax call to a backend app that then calls the graphql api to retrieve the entries and return it to the frontend.
🌐
Stack Overflow
stackoverflow.com › questions › 74571813 › liquid-shopify-how-to-access-the-current-url
liquid Shopify - how to access the current URL - Stack Overflow
I can't access the full URL in mini-cart.liquid . I used this conditional statement: {% if request.locale.iso_code == "de" and request.origin contains 'https://myshop.ch' %} href="/{{ request.locale.iso_code }}/checkout" ... Check the request object: https://shopify.dev/api/liquid/objects?shpxid=ae783aed-8802-4157-ED00-1067D234E633#request it should contain everything you need.
🌐
Shopify Community
community.shopify.com › shopify discussion
How to pass a parameter and its value from url to liquid
July 26, 2018 - Is there any way i can get the parameter and its value from url. For example, www.test.com/?parameter=value I should get parameter and value to a variable in liquid.
🌐
Avada
avada.io › home › blog › liquid file_img_url: how to get file image url in shopify
Liquid file_img_url: How to Get File Image URL in Shopify
February 24, 2025 - Managing a Shopify store with numerous images can be challenging, especially when you need to quickly find and use image URLs. Thankfully, Shopify’s Liquid template language simplifies this task with its URL filter, allowing you to easily retrieve the file image URL.