fix search results

This commit is contained in:
zadam
2020-07-02 20:19:09 +02:00
parent 3e189d5c10
commit ef847b9904
2 changed files with 5 additions and 3 deletions

View File

@@ -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);