mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
fix window history navigation (and in particular bring back forward button, pardon the pun)
This commit is contained in:
parent
2fe0fbc619
commit
3da830567d
@ -557,7 +557,7 @@ function watchHashChange(e) {
|
||||
if (notFirstModalView && notNavigatedBackToFirstModalView) {
|
||||
$('.modal-back').css('display', 'inline');
|
||||
} else {
|
||||
window.history.pushState({showCloseButton: false}, null, null);
|
||||
window.history.replaceState({showCloseButton: false}, '', window.location.pathname + window.location.hash);
|
||||
$('.modal-back').css('display', 'none');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user