From 072fc62cbac76b165c9d64fe7b4ed48af4f293fe Mon Sep 17 00:00:00 2001 From: TenerifeProp Dev Date: Tue, 7 Apr 2026 06:54:23 +0100 Subject: [PATCH] fix: clean up duplicate code and implement URL hash navigation - Remove duplicate tags - Remove duplicate script tags and incomplete JavaScript - Add URL hash handling (e.g., /admin#dashboard, /admin#properties) - Add hashchange event listener for browser back/forward navigation - Simplify navigation by updating hash instead of directly calling loadSection Fixes issue where URL didn't change when navigating between admin sections. --- public/admin.html | 45 +++++++++++++++++---------------------------- 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/public/admin.html b/public/admin.html index 05c57f9..a3e9678 100644 --- a/public/admin.html +++ b/public/admin.html @@ -1164,9 +1164,6 @@ } - - -