JavaScript Verifique el hash en URL
if (location.href.indexOf("#") != -1) {
//current url has a #hash in it
}
Grepper
if (location.href.indexOf("#") != -1) {
//current url has a #hash in it
}
location.hash