I want to keep hash value in returnURL when user is sent to LogOn controller, but IE7-9/Safari/Opera removes it.
For example, I try this URL
http://localhost:18314/#&t={DA3DB617-F9A3-4668-93E6-BBB2E37B928F}
User is not authorized and sent to LogOn controller. I get just this in IE7-9, Safari, Opera:
http://localhost:18314/Login/LogOn?ReturnUrl=%2f
But in FireFox and Chrome:
http://localhost:18314/Login/LogOn?ReturnUrl=%2f#&t={DA3DB617-F9A3-4668-93E6-BBB2E37B928F}
Why and how to fix?!
Thanks! :-)
You have to escape the hash using %23
so this:
becomes:
Tested in IE9.