How to handle reload inside of Web App

When an app is run on Android or iOS you don’t really have an option to reload the page as it were so this isn’t really an issue on a device, but when running the app on a computer in a browser if you manually reload the page, the view always seems to go back to the home page and does not stay on whatever page you were on.
I know this is a pretty broad question, but is there a particular best practice for handling this?

I think this person had a similar problem, but didn’t ever get an answer: https://stackoverflow.com/questions/49114469/ionic-3-whit-ion-menu-lost-rootpage-when-browser-reload