From 2c5fb7edee56470e82ba29accf39e17d52515bd3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 7 Feb 2025 19:33:26 +0200 Subject: [PATCH] fix(in-app-help): navigating to new page breakign scope --- src/public/app/widgets/note_tree.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index 1793d6c65..be896780f 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -368,7 +368,11 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { const notePath = treeService.getNotePath(data.node); const activeNoteContext = appContext.tabManager.getActiveContext(); - await activeNoteContext.setNote(notePath); + const opts = {}; + if (activeNoteContext.viewScope.viewMode === "contextual-help") { + opts.viewScope = activeNoteContext.viewScope; + } + await activeNoteContext.setNote(notePath, opts); }, expand: (event, data) => this.setExpanded(data.node.data.branchId, true), collapse: (event, data) => this.setExpanded(data.node.data.branchId, false),