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

November 26, 2017 976 views
Node.js JavaScript

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
ryanpq MOD February 28, 2018
Accepted 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.