mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
show notes in a book including their prefix, closes #695
This commit is contained in:
@@ -16,9 +16,9 @@ function getNotePathFromUrl(url) {
|
||||
|
||||
async function createNoteLink(notePath, noteTitle = null, tooltip = true) {
|
||||
if (!noteTitle) {
|
||||
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
|
||||
const {noteId, parentNoteId} = treeUtils.getNoteIdAndParentIdFromNotePath(notePath);
|
||||
|
||||
noteTitle = await treeUtils.getNoteTitle(noteId);
|
||||
noteTitle = await treeUtils.getNoteTitle(noteId, parentNoteId);
|
||||
}
|
||||
|
||||
const $noteLink = $("<a>", {
|
||||
|
||||
Reference in New Issue
Block a user