fix window history navigation (and in particular bring back forward button, pardon the pun)

This commit is contained in:
Simon Grim 2016-01-10 03:22:28 +05:00
parent 2fe0fbc619
commit 3da830567d

View File

@ -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');
}
}