Skip to content

Build your personal knowledge base with Trilium Notes

fix search results

zadamef847b99041d
diff --git a/package.json b/package.json
index b359292b73..de501adeef 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
"commonmark": "0.29.1",
"cookie-parser": "1.4.5",
"csurf": "1.11.0",
- "dayjs": "1.8.28",
+ "dayjs": "1.8.29",
"debug": "4.1.1",
"ejs": "3.1.3",
"electron-debug": "3.1.0",
diff --git a/src/public/app/widgets/search_results.js b/src/public/app/widgets/search_results.js
index 0a5f1031a9..2bf539e155 100644
--- a/src/public/app/widgets/search_results.js
+++ b/src/public/app/widgets/search_results.js
@@ -48,8 +48,10 @@ export default class SearchResultsWidget extends BasicWidget {
for (const result of results) {
const link = $('<a>', {
href: 'javascript:',
- text: result.notePathTitle
- }).attr('data-action', 'note').attr('data-note-path', result.notePath);
+ text: result.notePathTitle,
+ 'data-action': 'note',
+ 'data-note-path': result.notePathArray.join('/')
+ });
const $result = $('<li>').append(link);