title: Why is the hash removed from the URL when you're at the root path?
body: <p>In the URL, when I want to visit root_path/#hash it removes the "#". Does anyone know why?</p>
  
  <p>For example, if you go to somesite.com/#some_hash, the url gets changed to somesite.com/some_hash, and then when you try to reload the page, it tries to visit the /some_hash path.</p>
  
  <p>I've noticed this only happens with the root path. For example, if you go to somesite.com/somepath/#some_hash, it does not have the same problem. The "#" is preserved.</p>
  
  <p>Why does this happen and is there any way to prevent it from happening? This creates problems when trying to create links to sections on the same page.</p>