How to find domain of current request in Shopify liquid?
shopify
Solution
It looks like Shopify added a new Request object recently. I can't find much documentation, just the one example - but it looks like it addresses your need. Use `{{ request.host }}` to get the current actually-requested domain.
Reference: https://help.shopify.com/en/themes/liquid/objects/request#request-host
Problem
I have a store with multiple custom domains. I'm trying to find what domain is currently being requested. Domains: somestore.myshopify.com store.customdomain1.com store.customdomain2.com When a request comes into store.customdomain1.com/collections is there a variable that will tell me it's from store.customdomain1.com ?