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