# Language Consideration with Relative Redirect

The Language Consideration feature is ideal for store owners who have configured Shopify markets for multiple countries or regions and want to redirect visitors from the initial store's specific page URL to the exact same page URL on their native store, with the appropriate language code.

You can utilize the feature in 2 ways:

1. [Default](https://help.spicegems.com/geoip-country-redirect/country-redirect/relative-redirect/pages/ZFJZQ0Rxp5FwZKaE4MGw#id-1.-default)
2. [Locale from Redirect URL](#id-2.-locale-from-redirect-url)

<figure><img src="/files/LnpF16dIq5LwjIMxszlj" alt=""><figcaption></figcaption></figure>

Let's understand the functionality of both options with the Relative Redirect feature:

## 1. Default

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

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

<table><thead><tr><th width="245">Landing URL</th><th>Redirect To Store URL</th><th>Final Redirection URL</th></tr></thead><tbody><tr><td>shop-one.com/en</td><td>shop-two.com/fr</td><td>shop-two.com/fr</td></tr><tr><td>shop-one.com/en/product</td><td>shop-two.com/fr/product</td><td>shop-two.com/fr/product</td></tr></tbody></table>

### 1.2 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 Language code available only in the Redirect To Store URL

| Landing URL          | Redirect To Store URL   | Final Redirection URL   |
| -------------------- | ----------------------- | ----------------------- |
| Shop-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 destination store "Redirect To Store URL" only:

### 2.1 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 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 Language code available only in the Redirect To Store URL

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

In case of any queries, please feel free to reach out to [**help@spicegems.com**](mailto:help@spicegems.com)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.spicegems.com/geoip-country-redirect/country-redirect/relative-redirect/language-consideration-with-relative-redirect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
