How to get complete current URL in php<>
This question already has an answer here:
Because of # in the URL you are getting blank in the S_GET or $_SERVER.
var hash = window.location.hash;
The part of the url after the hash (#) is the fragment identifier:
Fragments depend on the document MIME type and are evaluated by the client (Web browser). Clients are not supposed to send URI-fragments to servers when they retrieve a document, and without help from a local application (see below) fragments do not participate in HTTP redirections