Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix backlink generation for drag & dropped links, fixes #3314
zadam89e319c7a291
diff --git a/src/public/app/services/link.js b/src/public/app/services/link.jsindex fabfc26288..6c428dcd64 100644--- a/src/public/app/services/link.js+++ b/src/public/app/services/link.js@@ -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;