Question

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

Posted November 26, 2017 1.3k 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

Submit an Answer