<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>

CC BY-SA 3.0
2014-09-18T00:18:40.657Z
2014-09-18T00:18:40.657Z
Brandon Kelly
<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>

CC BY-SA 3.0
2014-09-18T00:11:39.397Z
Can you update your question with the template code you're using to generate the link?
Brad Bell
<routes>
Removing _home_ from Home Page link
# 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:


You should be doing this instead, though, which will remove it:


or,


---

