Here’s something I learned about Url hashtags a while back that seemed worth sharing.
As you may know, hashtags are never sent to the server. There is, by regular browser redirection, no way to get hashtag information to the server.
For a client-side script based web application that uses hashtags, obviously, this presents a challenge. Even if all you want is a redirect url on login, it can’t utilize the hashtag.
One work-around that I found that works well is to redirect to a page that has a hidden HTML input which you can stuff the hash (url encoded) into and then post that as a named/value pair to the server.
More Link