Answers.Body: <p><code>__home__</code> is the pretend URI that Craft uses to identify an element that should be treated as the homepage. The only way you would be able to output it is if you were doing something like this:</p>
  
  
  
  <pre class="lang-twig prettyprint-override"><code>&lt;a href="{{ siteUrl ~ entry.uri }}"&gt;
  </code></pre>
  
  <p>You should be doing this instead, though, which will remove it:</p>
  
  <pre class="lang-twig prettyprint-override"><code>&lt;a href="{{ entry.url }}"&gt;
  </code></pre>
  
  <p>or,</p>
  
  <pre class="lang-twig prettyprint-override"><code>&lt;a href="{{ entry.getUrl() }}"&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-18T00:18:40.657Z
Answers.LastActivityDate: 2014-09-18T00:18:40.657Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>I have a single page selected as home page by ticking "This is for homepage" but now I find link comes up as <pre><code> <a href="http://example.com/index.php/____home____" rel="nofollow">http://example.com/index.php/<strong>__home__</strong></a></code></pre> </p>
  
  <p>I want the home link to only be <pre><code> <a href="http://example.com/index.php/" rel="nofollow">http://example.com/index.php/</a></code></pre> What do I need to do to get rid of <strong>__home__</strong>?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-09-18T00:11:39.397Z
Comments.Text: Can you update your question with the template code you're using to generate the link?
Comments.UserDisplayName: Brad Bell
Tags: <routes>
Title: Removing _home_ from Home Page link
ThreadText: # Removing _home_ from Home Page link
  
  (Asked by: username_0 on 2014-09-18)
  
  I have a single page selected as home page by ticking "This is for homepage" but now I find link comes up as
  
  ```
   http://example.com/index.php/__home__
  ```
  
  I want the home link to only be
  
  ```
   http://example.com/index.php/
  ```
  
  What do I need to do to get rid of **\_\_home\_\_**?
  
  **Tags:** routes
  
  > **Comments:**
  > **username_1**: Can you update your question with the template code you're using to generate the link?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2014-09-18. Score: 3 | Accepted answer
  
  `__home__` is the pretend URI that Craft uses to identify an element that should be treated as the homepage. The only way you would be able to output it is if you were doing something like this:
  
  ```twig
  <a href="{{ siteUrl ~ entry.uri }}">
  
  ```
  
  You should be doing this instead, though, which will remove it:
  
  ```twig
  <a href="{{ entry.url }}">
  
  ```
  
  or,
  
  ```twig
  <a href="{{ entry.getUrl() }}">
  
  ```
  
  
  ---
  
  