---
description: Preserve Language-Code (Locale)
---

# Language Consideration with Relative Redirect

The Language Consideration feature is best suited for store owners who have Shopify markets configured for multiple countries/regions and want to redirect visitors from the initial store (specific page) URL to the exact same page URL on their native store with the required **Language code**.

There are two options in the feature

1. Default
2. Locale from Redirect URL

<figure><img src="https://2670149893-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FufSz9Fn2Bq257KnKEgiT%2Fuploads%2F2O0aQSBc2AqTOa2xcgQf%2FPreserve_language_code.png?alt=media&#x26;token=20b7bbe5-4bd2-4b92-bb96-cd707597980d" alt=""><figcaption></figcaption></figure>

Let's understand both options with relative redirect:

## 1. Default

Preserve language code with relative redirect have certain cases which is dependent on the language code availability in the landing URL and "Redirect To Store URL (Destination URL)" in the app.

### 1.1 If language code available in the landing URL and Redirect To Store URL

| Landing URL             | Redirect To Store URL   | Final Redirection URL   |
| ----------------------- | ----------------------- | ----------------------- |
| shop-one.com/en         | shop-two.com/fr         | shop-two.com/fr         |
| shop-one.com/en/product | shop-two.com/fr/product | shop-two.com/fr/product |

### 1.2 If language code available only in the landing URL

| Landing URL     | Redirect To Store URL | Final Redirection URL |
| --------------- | --------------------- | --------------------- |
| shop-one.com/en | shop-two.com          | shop-two.com/en       |

### 1.3 If language code available only in the Redirect To Store URL

| Landing URL          | Redirect To Store URL   | Final Redirection URL   |
| -------------------- | ----------------------- | ----------------------- |
| hop-one.com          | shop-two.com/fr         | shop-two.com/fr         |
| shop-one.com/product | shop-two.com/fr/product | shop-two.com/fr/product |

## 2. Locale from Redirect URL

In the **Locale from Redirect URL** functionality, the language code will be considered as per the availability in the "Redirect To Store URL" only:&#x20;

### 2.1 If language code available in the landing URL and Redirect To Store URL

| Landing URL             | Redirect To Store URL   | Final Redirection URL   |
| ----------------------- | ----------------------- | ----------------------- |
| shop-one.com/en         | shop-two.com/fr         | shop-two.com/fr         |
| shop-one.com/en/product | shop-two.com/fr/product | shop-two.com/fr/product |

### 2.2 If language code available only in the landing URL

| Landing URL     | Redirect To Store URL | Final Redirection URL |
| --------------- | --------------------- | --------------------- |
| shop-one.com/en | shop-two.com          | shop-two.com          |

### 2.3 If language code available only in the Redirect To Store URL

| Landing URL          | Redirect To Store URL   | Final Redirection URL   |
| -------------------- | ----------------------- | ----------------------- |
| hop-one.com          | shop-two.com/fr         | shop-two.com/fr         |
| shop-one.com/product | shop-two.com/fr/product | shop-two.com/fr/product |
