fixed URL location bug

This commit is contained in:
Gamosoft 2025-11-24 17:23:05 +01:00
parent b56c78587e
commit ae251c99ee
1 changed files with 2 additions and 2 deletions

View File

@ -267,8 +267,8 @@ function noteApp() {
// Parse URL and load specific note if provided // Parse URL and load specific note if provided
this.loadNoteFromURL(); this.loadNoteFromURL();
// Set initial homepage state if no note is loaded // Set initial homepage state ONLY if we're actually on the homepage
if (!this.currentNote) { if (window.location.pathname === '/') {
window.history.replaceState({ homepageFolder: '' }, '', '/'); window.history.replaceState({ homepageFolder: '' }, '', '/');
} }