title: URL fragment removed by IE after 302 login redirect
body: <p>We use <strong>SiteMinder</strong> authentication in our application.</p>
  <p>If app user tries to navigate to a particular page <code>https://ourapp.com/myapp/#/pending/requests</code> in our app via direct URL or via bookmarked URL, <code>SiteMinder</code> will redirect to a <code>login page</code> via 302 redirect similar to <code>http://ourapp.com/login?redirect=https%3A%2F%2Fourapp.com%2Fmyapp%2F#/pending/requests</code> asking for user to enter credential in a <strong>login form</strong>. After successful authentication, user should be redirected to our app and land on the requested page(<code>/pending/requests</code>).</p>
  <p>It's working absolutely fine in <code>Chrome</code> and <code>Firefox</code>. When it comes to IE it's landing on <code>https://ourapp.com/myapp/#/home</code> (default landing page) instead of <code>https://ourapp.com/myapp/#/pending/requests</code>.</p>
  <p>I have tried various solutions provided in <code>google search results</code> in our app code like,</p>
  <ul>
  <li>Removing <code>&lt;base&gt;</code> tag in <code>index.html</code></li>
  <li>Adding below lines of code at top of the page</li>
  </ul>
  <pre class="lang-js prettyprint-override"><code>// setting location back
  window.location = window.location;
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>// setting location hash back
  window.location.hash = window.location.hash;
  </code></pre>
  <ul>
  <li>Few other solutions similar to above</li>
  </ul>
  <p>Though <a href="https://stackoverflow.com/questions/5283395/url-hash-is-persisting-between-redirects">this Q &amp; A</a> perfectly makes sense,</p>
  <p>I still want to <code>preserve the URL hash fragment in IE even it's 3xx redirect</code> for my requirement...!?</p>