diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.ts index bafeaaa60..8c62a5586 100644 --- a/src/public/app/components/app_context.ts +++ b/src/public/app/components/app_context.ts @@ -551,10 +551,12 @@ $(window).on("beforeunload", () => { }); $(window).on("hashchange", function () { - const { notePath, ntxId, viewScope } = linkService.parseNavigationStateFromUrl(window.location.href); + const { notePath, ntxId, viewScope, searchString } = linkService.parseNavigationStateFromUrl(window.location.href); if (notePath || ntxId) { appContext.tabManager.switchToNoteContext(ntxId, notePath, viewScope); + } else if (searchString) { + appContext.triggerCommand("searchNotes", { searchString }); } });