mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix search results
This commit is contained in:
parent
3e189d5c10
commit
ef847b9904
@ -31,7 +31,7 @@
|
|||||||
"commonmark": "0.29.1",
|
"commonmark": "0.29.1",
|
||||||
"cookie-parser": "1.4.5",
|
"cookie-parser": "1.4.5",
|
||||||
"csurf": "1.11.0",
|
"csurf": "1.11.0",
|
||||||
"dayjs": "1.8.28",
|
"dayjs": "1.8.29",
|
||||||
"debug": "4.1.1",
|
"debug": "4.1.1",
|
||||||
"ejs": "3.1.3",
|
"ejs": "3.1.3",
|
||||||
"electron-debug": "3.1.0",
|
"electron-debug": "3.1.0",
|
||||||
|
@ -48,8 +48,10 @@ export default class SearchResultsWidget extends BasicWidget {
|
|||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
const link = $('<a>', {
|
const link = $('<a>', {
|
||||||
href: 'javascript:',
|
href: 'javascript:',
|
||||||
text: result.notePathTitle
|
text: result.notePathTitle,
|
||||||
}).attr('data-action', 'note').attr('data-note-path', result.notePath);
|
'data-action': 'note',
|
||||||
|
'data-note-path': result.notePathArray.join('/')
|
||||||
|
});
|
||||||
|
|
||||||
const $result = $('<li>').append(link);
|
const $result = $('<li>').append(link);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user