I believe this only removes the hash from the url if it exists. We could change it to a regular if