mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix backlink generation for drag & dropped links, fixes #3314
This commit is contained in:
parent
f7e56cbffe
commit
89e319c7a2
@ -17,6 +17,12 @@ async function createNoteLink(notePath, options = {}) {
|
||||
return $("<span>").text("[missing note]");
|
||||
}
|
||||
|
||||
if (!notePath.startsWith("root")) {
|
||||
// all note paths should start with "root/" (except for "root" itself)
|
||||
// used e.g. to find internal links
|
||||
notePath = "root/" + notePath;
|
||||
}
|
||||
|
||||
let noteTitle = options.title;
|
||||
const showTooltip = options.showTooltip === undefined ? true : options.showTooltip;
|
||||
const showNotePath = options.showNotePath === undefined ? false : options.showNotePath;
|
||||
|
Loading…
x
Reference in New Issue
Block a user