Sprawdź zmianę adresu URL JS
window.addEventListener('popstate', function (event) {
// The URL changed...
});
Anthony Smith
window.addEventListener('popstate', function (event) {
// The URL changed...
});