Can you use a domain variable for linking pages in Shopify?

Casey03
Shopify Partner
25 0 8

Hi All, 

I am currently testing Shopify with a dev store. Should we proceed with changing to Shopify, we will need to run a store in dev along side production. These stores of course will have different domains. The dev having shopify domain, and production with custom domain. 

As we are not able to create the production store with the production domain as it is currently live elsewhere. I would like to know if there is a variable I can use for page links. An example would be would be 

https://{{shop.domain}}/account/login 

The idea being, we wouldn't need to worry about changing the DOMAIN URL between stores. 

Thanks

Reply 1 (1)

Casey03
Shopify Partner
25 0 8

Hi,

Does anyone have any idea on this? Or does everyone just change the links manually after changing domain?

Thanks