title: How to force ASP.NET forms authentication to use absolute URL for ReturnUrl parameter?
body: <p>When you use ASP.NET forms authentication, and you want to surf to a secure page like <code>securepage.aspx</code>, you would be redirected to this URL:</p>
  
  <pre><code>http://www.example.com/login.aspx?returnurl=securepage.aspx`
  </code></pre>
  
  <p>Is there a way to get the absolute URL in login page, like:</p>
  
  <pre><code>http://www.example.com/login.aspx?returnurl=http://www.example.com/securepage.aspx
  </code></pre>
  
  <p>I need this feature, because I'm working on a rather complicated SSO project, and I need to always work with absolute URLs.</p>