Close popup on back button or popstate event without route changing?

How close popup on back button or popstate event without route changing?

$(window).on(“popstate”) and app.on(“routeChange”) triggeret to late

Maybe manually manage History.blockPopstate to prevent navigation?

it is impossible to prevent browser’s back button from changing URL. If you are not using pushState then you can’t do it. With pushState enabled you can just make this popup routable and it will be closed on route back http://framework7.io/docs/routes.html#routable-modals