Adding "#x" to URL doesn't work to automatically scroll down to element when navigating via link
<p>I have a page called "home" with an element with id="element". I have a link on another page that points to this url: "localhost:3000/home#element".</p>

<p>Using Chrome, when I follow the link, it takes me to the home page, but the view isn't scrolled down at all. When I refresh, however, the view automatically scrolls down to #element. It also works when I manually type the URL in.</p>

<p>Why doesn't this work when I'm using a link?</p>

<p>This bug doesn't show up on Firefox.</p>

<p><strong>Probably unrelated but worth mentioning:</strong> Sometimes, rarely, when I navigate to the url "localhost:3000/home", the page opens already scrolled down to an apparently random position. It happens so sporadically that I haven't had a chance to do much testing on it. I doubt the two bugs are related, though.</p>