At the moment we are using a dedicated back button on the page rather than the browser's back button
// Run code on back button press
window.onpopstate = function() {
alert("clicked back button");
};
// Add state to get back to
history.pushState({}, '');
At the moment we are using a dedicated back button on the page rather than the browser's back button
see the doc