title: ActionLink can't access root folder - MVC 3
body: <p>I have an .Net MVC 3 web application that has the following structure</p>
  
  <ul>
  <li>root 
  <ul>
  <li>Views
  <ul>
  <li>Account
  <ul>
  <li>LoginPage.aspx</li>
  </ul></li>
  </ul></li>
  <li>Controllers
  <ul>
  <li>AccountController</li>
  </ul></li>
  <li>Areas
  <ul>
  <li>Course
  <ul>
  <li>Index.aspx</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Imagine I am currently at the <strong>Index.aspx</strong> page in the Course area, and I would have a button that would forward me to the <strong>LoginPage.aspx</strong></p>
  
  <p>In a ASP.Net MVC I would call <a href="http://localhost/Account/Login" rel="nofollow">http://localhost/Account/Login</a> that it would lead me to the correct page. If I just write it down on the browser it works!</p>
  
  <p>But I would like to use the HTML Helper <strong>ActionLink</strong>, so I tried:</p>
  
  <pre><code>&lt;%: Html.ActionLink("Log on", "Login",  "Account", routeValues: null, htmlAttributes: new {  id = "logonLink", data_dialog_title = "Logon" })%&gt;
  </code></pre>
  
  <p>It get the relative path: <a href="http://localhost/Course/Account/Login" rel="nofollow">http://localhost/Course/Account/Login</a></p>
  
  <p>I tried also:</p>
  
  <pre><code>&lt;%: Html.ActionLink("Log on", "Login",  "../Account", routeValues: null, htmlAttributes: new {  id = "loginLink", data_dialog_title = "Login" })%&gt;
  </code></pre>
  
  <p>I got the error message: <strong>Cannot use a leading .. to exit above the top directory.</strong> </p>
  
  <p>I also tried the relative path:</p>
  
  <pre><code>&lt;%: Html.ActionLink("Log on", "Login",  "~/Account", routeValues: null, htmlAttributes: new {  id = "loginLink", data_dialog_title = "Login" })%&gt;
  </code></pre>
  
  <p>And it lead me to: </p>
  
  <p><a href="http://localhost/Course/~/Account/Login" rel="nofollow">http://localhost/Course/~/Account/Login</a></p>
  
  <p>I would really appreciate how to find a solution for this problem.</p>