Safari browser back button works only after couple of clicks
hunter-s70 opened this issue · 1 comments
hunter-s70 commented
I'm using vue-googlemaps in my project.
In Safari browser (desktop, mobile) when I go to the page which contains google map it create few instances of google map and duplicates this page in browser history (after second entering on the page without reloading page).
So browser back button works only after couple of clicks on it.
justinotero commented
It is an issue of Google Maps in Safari. Doesn't specifically refer to Vue/React/Angular. If you log your browser history, you will see normal url state changes will simply add a new state into the history. When you navigate to a page with Google Maps, it triggers two new states in browser history. Resulting in the user have to click the back button more than once.