Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/stable'

zadam98ee3b029a89
diff --cc src/becca/becca_service.js
index dda9d53ad9,65a76a93d4..242e23c6f2
--- a/src/becca/becca_service.js
+++ b/src/becca/becca_service.js
@@@ -171,7 -171,16 +171,16 @@@ function getNotePath(noteId)
if (retPath) {
const noteTitle = getNoteTitleForPath(retPath);
- const parentNote = note.parents[0];
+
+ let branchId;
+
+ if (note.noteId === 'root') {
+ branchId = 'root';
+ }
+ else {
+ const parentNote = note.parents[0];
- branchId = noteCache.getBranch(noteId, parentNote.noteId).branchId;
++ branchId = becca.getBranchFromChildAndParent(noteId, parentNote.noteId).branchId;
+ }
return {
noteId: noteId,