UI - Fix back navigation / browser history (#1556)

pull/1520/merge
Raymond Ha 2 years ago committed by GitHub
parent 2018e73240
commit 1710885fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,7 +12,7 @@ window.addEventListener('hashchange', function () {
var has_errors = document.querySelectorAll(".messages .error"); var has_errors = document.querySelectorAll(".messages .error");
if (!has_errors.length) { if (!has_errors.length) {
if (document.location.hash == "") { if (document.location.hash == "") {
document.querySelector(".tabs ul li:first-child a").click(); location.replace(document.querySelector(".tabs ul li:first-child a").hash);
} else { } else {
set_active_tab(); set_active_tab();
} }

Loading…
Cancel
Save