You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now for instance if you go to starred stations, then click on one of the stations to see its details, the return button redirects to the home instead of redirecting to the starred stations.
The text was updated successfully, but these errors were encountered:
What about using history.replaceState() instead of hash navigation, and handling the return button from our code, without relying on the navigator history?
Mmh I like the hash navigation, and it is a common practice. You cannot copy paste the URL to somebedy else if you use history.replaceState(). Plus, it seems dirty…
AFAIK, history.replaceState() changes the URL, but do not trigger the events the browser would normally handle when changing hash. Hence, benefits from changing hash, but single page application behaviour.
Now for instance if you go to starred stations, then click on one of the stations to see its details, the return button redirects to the home instead of redirecting to the starred stations.
The text was updated successfully, but these errors were encountered: