set window.location.hash instead of window.location