fix settings history back

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2026-06-12 10:49:44 +02:00
parent 7c00db5028
commit d321131ce3
2 changed files with 8 additions and 2 deletions
@@ -66,7 +66,10 @@
const selectTab = (id) => {
active = id;
window.location.hash = id;
// replace the current history entry instead of pushing a new one, so
// switching tabs does not stack up history and the back button leaves
// the page rather than walking back through each visited tab
history.replaceState(history.state, '', `#${id}`);
};
const load = async () => {
+4 -1
View File
@@ -53,7 +53,10 @@
const selectTab = (id) => {
active = id;
window.location.hash = id;
// replace the current history entry instead of pushing a new one, so
// switching tabs does not stack up history and the back button leaves
// the page rather than walking back through each visited tab
history.replaceState(history.state, '', `#${id}`);
};
</script>