From 4b40c27c8437a1974fd98356f48be7175a6d08d4 Mon Sep 17 00:00:00 2001
From: OpenXE <>
Date: Sat, 17 Jun 2023 12:27:32 +0200
Subject: [PATCH] bugfix scrolling to middle of page
---
www/js/scrollfix.js | 7 +++++++
www/themes/new/templates/page.tpl | 1 +
2 files changed, 8 insertions(+)
create mode 100644 www/js/scrollfix.js
diff --git a/www/js/scrollfix.js b/www/js/scrollfix.js
new file mode 100644
index 00000000..31365b54
--- /dev/null
+++ b/www/js/scrollfix.js
@@ -0,0 +1,7 @@
+/*
+* Fix scrolling to middle of page bug
+*/
+
+$(() => {
+ window.scrollTo(0, 0);
+})
diff --git a/www/themes/new/templates/page.tpl b/www/themes/new/templates/page.tpl
index f660520d..84673c22 100644
--- a/www/themes/new/templates/page.tpl
+++ b/www/themes/new/templates/page.tpl
@@ -286,5 +286,6 @@ $(document).ready(function() {
+