we want to pass get_url a relative path.  we had been using window.location, because it was returning a relative path, and windowl.location.pathname was undefined.  once you change the hash, window.location becomes a full url, and window.pathname gets set.