From ae251c99eedfbdf2bafb8901ca9124d0359ad000 Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Mon, 24 Nov 2025 17:23:05 +0100 Subject: [PATCH] fixed URL location bug --- frontend/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index afb5102..6e3bc15 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -267,8 +267,8 @@ function noteApp() { // Parse URL and load specific note if provided this.loadNoteFromURL(); - // Set initial homepage state if no note is loaded - if (!this.currentNote) { + // Set initial homepage state ONLY if we're actually on the homepage + if (window.location.pathname === '/') { window.history.replaceState({ homepageFolder: '' }, '', '/'); }