Get current URL in Liquid

Shopify Partner
9 0 2

Ability to get current opened (requested) URL in Liquid is essential. 

I know that it's an old theme, but it's very important. We need a current URL to decide, which product variant to load. It will impact page optimization a lot if we will use javascript for this.

Shopify team, please, pay attention to this topic. You have a lot of partners who need this function, but they have to use ugly JavaScript scripts to replace this functionality. I don't think getting request URL on the backend is such a big deal, so I'm asking you to add this function.


Thank you.