Skip to content

Build your personal knowledge base with Trilium Notes

when creating new note into inbox use current hoisted note in new tab as well

zadam9fd26a9b9fc7
diff --git a/src/public/app/services/entrypoints.js b/src/public/app/services/entrypoints.js
index c382fce0c2..f8d56658b0 100644
--- a/src/public/app/services/entrypoints.js
+++ b/src/public/app/services/entrypoints.js
@@ -74,7 +74,11 @@ export default class Entrypoints extends Component {
await ws.waitForMaxKnownEntityChangeId();
- await appContext.tabManager.openTabWithNote(note.noteId, true);
+ const hoistedNoteId = appContext.tabManager.getActiveTabContext()
+ ? appContext.tabManager.getActiveTabContext().hoistedNoteId
+ : 'root';
+
+ await appContext.tabManager.openTabWithNote(note.noteId, true, null, hoistedNoteId);
appContext.triggerEvent('focusAndSelectTitle');
}