fixed URL location bug
This commit is contained in:
parent
b56c78587e
commit
ae251c99ee
|
|
@ -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: '' }, '', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue