<p>I figured out what was wrong, though I'm confused on why some of it was working fine... Maybe if it broke more fully I would have found it easier, haha. Mats was right, it was the Base URL in the Sites area of the admin control panel. I had entered @web/es thinking that I want it to be the root of the primary site, but that wasn't correct, I needed to just put @web/ because I already told it that it lived at /es through the index.php of that site folder.   </p>

CC BY-SA 4.0
2018-09-29T22:54:40.893Z
2018-09-29T22:54:40.893Z
jonsuther
<p>I'm getting example.com/es/es for my Spanish site instead of the expected example.com/es when using the {{ siteUrl }} variable.</p>

<p>The primary site is producing the expected example.com/</p>

<p>Any idea of how I did that incorrectly?</p>

CC BY-SA 4.0
2018-09-23T20:59:30.703Z
What is the `Base URL` setting set to for this particular site?
Mats Mikkel Rummelhoff
CC BY-SA 4.0
2018-09-24T01:55:33.800Z
I figured out what was wrong, though I'm confused on why some of it was working fine... Maybe if it broke more fully I would have found it easier, haha.

Mats was right, it was the Base URL in the Sites area of the admin control panel. I had entered @web/es thinking that I want it to be the root of the primary site, but that wasn't correct, I needed to just put @web/ because I already told it that it lived at /es through the index.php of that site folder.
jonsuther
CC BY-SA 4.0
2018-09-25T10:03:06.903Z
@jonsuther would you mind adding your solution as an official answer in case it ends up helping someone in the future?
Brad Bell
<localization><multi-site><language><siteurl>
The Variable {{ siteUrl }} Produces Two /es/es/ On Multisite
# The Variable {{ siteUrl }} Produces Two /es/es/ On Multisite

(Asked by: username_0 on 2018-09-23)

I'm getting example.com/es/es for my Spanish site instead of the expected example.com/es when using the {{ siteUrl }} variable.

The primary site is producing the expected example.com/

Any idea of how I did that incorrectly?

**Tags:** localization, multi-site, language, siteurl

> **Comments:**
> **username_1**: What is the `Base URL` setting set to for this particular site?  
> **username_0**: I figured out what was wrong, though I'm confused on why some of it was working fine... Maybe if it broke more fully I would have found it easier, haha.  Mats was right, it was the Base URL in the Sites area of the admin control panel. I had entered @web/es thinking that I want it to be the root of the primary site, but that wasn't correct, I needed to just put @web/ because I already told it that it lived at /es through the index.php of that site folder.  
> **username_2**: @username_0 would you mind adding your solution as an official answer in case it ends up helping someone in the future?  

---

## 1 answers

### Answer by username_0 on 2018-09-29. Score: 0 | Accepted answer

I figured out what was wrong, though I'm confused on why some of it was working fine... Maybe if it broke more fully I would have found it easier, haha. Mats was right, it was the Base URL in the Sites area of the admin control panel. I had entered @web/es thinking that I want it to be the root of the primary site, but that wasn't correct, I needed to just put @web/ because I already told it that it lived at /es through the index.php of that site folder.


---

