Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-29T22:54:40.893Z
Answers.LastActivityDate: 2018-09-29T22:54:40.893Z
Answers.UserDisplayName: jonsuther
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-23T20:59:30.703Z
Comments.Text: What is the `Base URL` setting set to for this particular site?
Comments.UserDisplayName: Mats Mikkel Rummelhoff
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-24T01:55:33.800Z
Comments.Text: 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.
Comments.UserDisplayName: jonsuther
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-25T10:03:06.903Z
Comments.Text: @jonsuther would you mind adding your solution as an official answer in case it ends up helping someone in the future?
Comments.UserDisplayName: Brad Bell
Tags: <localization><multi-site><language><siteurl>
Title: The Variable {{ siteUrl }} Produces Two /es/es/ On Multisite
ThreadText: # 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.  username_1 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. username_1 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.
  
  
  ---
  
  