I have a one page app with the workflow “go to page” and when the user press back button, it goes back to the previous page as it is supposed to.
But, when I have popup windows in my app that also is controlled open or closed based of the URL. If I from an external page links to this URL (so that the popup is open). Then the user want to close this popup by pressing back, they go back to the external page, instead of just closing the popup inside my app. Is there a solution to this?
There is a plugin called Browser storage but I don’t understand how it can solve my problem?