Relative Redirect

The relative-Redirect functionality in the app redirects the visitors to the exact same page path on the destination URL (if available).

For Example:

A rule is created in the app to redirect Canadian visitors from the Global store "line-item.myshopify.com" to the Canadian store "sg-localapp.myshopify.com"

If visitors from Canada visit the URL line-item.myshopify.com/products/shirt. With the relative redirect functionality, they will be redirected to the same page path on the destination store (Canadian store)sg-localapp.myshopify.com/products/shirt.

Please note that in case of a Same-domain URL with relative, when you create a destination rule using the same domain URL, the redirect will occur only once per browser session.

For example, if you have a subfolder for the United States market (/en-us) and configure a rule in the app with the destination URL demo-492.myshopify.com/en-us to redirect US visitors accordingly, the redirect will trigger only once during the current session.

You can enable this feature in the rule to redirect users to the exact same page (if available) on the destination store.

If you are using Shopify markets or translations, then you can manage the locale in the URL while redirecting. Click here to learn more about preserving language code functionality

Please note that if the same page path/URL is not available on the destination store, it will display a 404 page.

Last updated