summaryrefslogtreecommitdiffci
path: root/views/layouts/general-page.html
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'views/layouts/general-page.html')
-rw-r--r--views/layouts/general-page.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/layouts/general-page.html b/views/layouts/general-page.html
index 8a621c4..f4fd9be 100644
--- a/views/layouts/general-page.html
+++ b/views/layouts/general-page.html
@@ -22,6 +22,9 @@
const newPath = toAppend ? `${newPathname}${path}` : `${path}`;
history.pushState({}, '', `${newPath}${urlParams.entries.length == 0 ? '' : '?' + urlParams.toString()}`);
+ if (location.pathname == "" || location.pathname == "/") {
+ return true;
+ }
window.dispatchEvent(new Event('popstate'));
return false;
};