Do not consider edit mode as a history entry

This commit is contained in:
2026-07-20 17:31:59 +02:00
parent 34f750beff
commit 28d22c040f
6 changed files with 93 additions and 2 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
switch (e.key) {
case 'E':
e.preventDefault();
window.location.href = window.location.pathname + '?edit';
// replace, not assign — same reasoning as history-nav.js.
window.location.replace(window.location.pathname + '?edit');
break;
case 'N':
e.preventDefault();