Skip to content

Build your personal knowledge base with Trilium Notes

feat(breadcrumb): show current item

Elian Doranc5c4ecd6e63b
diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx
index 18ec9e8456..1b3ae48881 100644
--- a/apps/client/src/widgets/Breadcrumb.tsx
+++ b/apps/client/src/widgets/Breadcrumb.tsx
@@ -73,7 +73,7 @@ function buildNotePaths(notePathArray: string[] | undefined) {
let prefix = "";
const output: string[] = [];
- for (const notePath of notePathArray.slice(0, notePathArray.length - 1)) {
+ for (const notePath of notePathArray) {
output.push(`${prefix}${notePath}`);
prefix += `${notePath}/`;
}