title: ASP.NET Url encode - url action > Doesnt go to the right controller?
body: <p>I'm having a little trouble with the <code>Url.Encode</code> method.</p>
  
  <p>I'm trying to create my menu with this Url.encode(Url.Action(..)). Everything is fine unless I want to go to a different controller ( Eg from account controller to my home controller ).</p>
  
  <p>Here is the menu </p>
  
  <pre><code>&lt;ul&gt;
                          &lt;li id="Home"&gt;&lt;a href="@Url.Encode(Url.Action("Index","Home"))"&gt;Home&lt;/a&gt;&lt;/li&gt;
                          &lt;li id="About"&gt;&lt;a href="@Url.Encode(Url.Action("About","Home"))"&gt;About&lt;/a&gt;&lt;/li&gt;
                          &lt;li id="Tickets"&gt;&lt;a href="@Url.Encode(Url.Action("Tickets","Home"))"&gt;Tickets&lt;/a&gt;&lt;/li&gt;
                          &lt;li id="Events"&gt;&lt;a href="@Url.Encode(Url.Action("Events","Home"))"&gt;Events&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;   
                      &lt;!--&lt;ul&gt;
                          &lt;li id="Home"&gt;@Html.ActionLink("Home", "Index", "Home")&lt;/li&gt;
                          &lt;li id="About"&gt;@Html.ActionLink("About", "About", "Home")&lt;/li&gt;
                          &lt;li id="Tickets"&gt;@Html.ActionLink("Tickets", "Tickets", "Home")&lt;/li&gt;
                          &lt;li id="Events"&gt;@Html.ActionLink("Events", "Events", "Home")&lt;/li&gt;
  
                      &lt;/ul&gt;--&gt;    
  </code></pre>
  
  <p>The menu in comment is the menu i used before the Url.Encode.</p>
  
  <p>If i'm at home and i go for example to 'About' I get this link :</p>
  
  <pre><code>&gt; http://localhost:1211/%2fHome%2fAbout
  </code></pre>
  
  <p>However if i'm at my account controller and want to go the same page this is the result :</p>
  
  <pre><code>&gt; http://localhost:1211/Account/%2fHome%2fAbout
  </code></pre>
  
  <p>You can see it still puts up the /Account/ infront of this. How do i solve this?</p>