We have a javascript function that should \"move\" a page to a certain position using anchors. This function just does window.location.href = \"#\" + hashName.
window.location.href = \"#\" + hashName
Have you tried changing just location.hash?
location.hash
window.location.hash = "#" + hashName;