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

This commit is contained in:
Raymond Ha
2023-05-04 07:54:04 -07:00
committed by GitHub
parent 2018e73240
commit 1710885fc4

View File

@@ -12,7 +12,7 @@ window.addEventListener('hashchange', function () {
var has_errors = document.querySelectorAll(".messages .error");
if (!has_errors.length) {
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 {
set_active_tab();
}