when i refresh my browser I get sent home instead of seind the page i am on

November 26, 2017 1.2k views
JavaScript Node.js

When I refresh my page I get sent home instead of it reloading the page I am on. This does not happen when I am running from my machine.

1 Answer

When you click refresh the browser will reload the exact URL in the address bar (and prompt you if it got there through a POST request). Be sure that your application if it a single page site, updates the address bar when the view is changed and is able to load the requested view.

Have another answer? Share your knowledge.