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 for mysterious 404 not found notes like "appearance"
azivner50c4de021c2d
diff --git a/src/public/javascripts/services/link.js b/src/public/javascripts/services/link.jsindex cae6ccf5b9..1c57b84288 100644--- a/src/public/javascripts/services/link.js+++ b/src/public/javascripts/services/link.js@@ -3,7 +3,7 @@ import noteDetailText from './note_detail_text.js';import treeUtils from './tree_utils.js';function getNotePathFromLink(url) {- const notePathMatch = /#([A-Za-z0-9/]+)$/.exec(url);+ const notePathMatch = /#root([A-Za-z0-9/]*)$/.exec(url);if (notePathMatch === null) {return null;@@ -14,7 +14,7 @@ function getNotePathFromLink(url) {}function getNotePathFromLabel(label) {- const notePathMatch = / \(([A-Za-z0-9/]+)\)/.exec(label);+ const notePathMatch = / \(([#A-Za-z0-9/]+)\)/.exec(label);if (notePathMatch !== null) {return notePathMatch[1];