title: Get full URL with hash to use as ReturnUrl
body: <p>I have such URL</p>
  
  <pre><code>localhost/Login/LogOn?ReturnUrl=/#&amp;q=my%20search%20word&amp;f=1//447044365|2//4
  </code></pre>
  
  <p>I need to get hash parameters to navigate in the application after authentication.</p>
  
  <p>I try to catch it like this</p>
  
  <pre><code>&lt;input name="returnUrl" value="&lt;%= ViewContext.HttpContext.Request.Url.PathAndQuery %&gt;" type="hidden" /&gt;
  </code></pre>
  
  <p>But result is </p>
  
  <pre><code>/Login/LogOn?ReturnUrl=/
  </code></pre>
  
  <p>I tried to take away "/#" in the URL, then I get whole URL. But I need to use this URL as it is.</p>
  
  <p>Why was URL cutted?</p>