I have a URL like this
http://www.domain.com/#movies
The url is redirected after an authentification filter to
http://www.domain.com/login#movies
Which contains a login form, I want to redirect the user, after login successful, back to
http://www.domain.com/#movies
Or at least read the part after the hash to see the original requested URI.
I have to mention that the hash has something to do with ajax, to load only what changed in the page, this is done by a front-end developer and I'm the back-end developer.
I tried $_SERVER['HTTP_REFERER']
and $_SERVER['REQUEST_URL']
but neither worked.