From 1b7dc77792c03fe87ec9fda40de9c116ed59396d Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Fri, 12 Jun 2026 09:11:26 +0200 Subject: [PATCH] Fix note breadcrumb showing 'Unfiled Notes' on Windows: normalize backslash paths before deriving the note's folder (#99) --- src/lib/components/Editor.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 043d6d3..bf80aef 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -376,7 +376,8 @@ viewerImportBusy = false; } } - let noteRelativePath = $derived($activeNotePath && $appConfig?.active_vault ? $activeNotePath.replace($appConfig.active_vault + '/', '') : ''); + // Normalize Windows backslashes to '/' so the prefix strip and folder split work cross-platform (issue #99). + let noteRelativePath = $derived($activeNotePath && $appConfig?.active_vault ? $activeNotePath.replace(/\\/g, '/').replace($appConfig.active_vault.replace(/\\/g, '/') + '/', '') : ''); let noteFolder = $derived(noteRelativePath ? noteRelativePath.substring(0, noteRelativePath.lastIndexOf('/')) : ''); let isQuickAccess = $derived(noteRelativePath ? $quickAccessPaths.includes(noteRelativePath) : false);