title: ASP.NET links won't redirect to the right page
body: <p>From time to time I encounter issues linking to page in Visual Studio when working with ASP.NET application.</p>
  
  <p>I create links to pages but they always redirect to the default one (Default.aspx)</p>
  
  <ul>
  <li>I trying various thing like deleting and recreate</li>
  <li>Rename the page</li>
  <li>Even If the page does not exist it still redirects to the defaults
  page.</li>
  </ul>
  
  <p>My <code>Login.aspx</code> page is the same folder as <code>ForgotPassword.aspx</code> I create links like this</p>
  
  <pre><code>&lt;asp:HyperLink ID="HyperLink2" runat="server"
                 NavigateUrl="ForgotPassword.aspx"&gt;
               Forgot your password ?
  &lt;/asp:HyperLink&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;a href="ForgotPassword.aspx"&gt;Forgot your password ?&lt;a&gt;
  </code></pre>
  
  <p>I am at loss to understand why such basic stuff would fail to work...
  How can I solve this issue? Could this be a bug?</p>
  
  <p>EDIT: 
  The Url in the browser looks like this:</p>
  
  <pre><code>/Account/Login.aspx?ReturnUrl=%2fAccount%2fForgotPassword.aspx
  </code></pre>
  
  <p>My webconfig:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/Login.aspx" timeout="2880" /&gt;
  &lt;/authentication&gt;
  </code></pre>