From 1710885fc44645eb02670d4fd1f51b48c07088af Mon Sep 17 00:00:00 2001 From: Raymond Ha Date: Thu, 4 May 2023 07:54:04 -0700 Subject: [PATCH] UI - Fix back navigation / browser history (#1556) --- changedetectionio/static/js/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/static/js/tabs.js b/changedetectionio/static/js/tabs.js index c419e0fb..59c20e99 100644 --- a/changedetectionio/static/js/tabs.js +++ b/changedetectionio/static/js/tabs.js @@ -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(); }