mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 17:27:01 +08:00
fix for mysterious 404 not found notes like "appearance"
This commit is contained in:
parent
936d8449f6
commit
50c4de021c
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import noteDetailText from './note_detail_text.js';
|
||||||
import treeUtils from './tree_utils.js';
|
import treeUtils from './tree_utils.js';
|
||||||
|
|
||||||
function getNotePathFromLink(url) {
|
function getNotePathFromLink(url) {
|
||||||
const notePathMatch = /#([A-Za-z0-9/]+)$/.exec(url);
|
const notePathMatch = /#root([A-Za-z0-9/]*)$/.exec(url);
|
||||||
|
|
||||||
if (notePathMatch === null) {
|
if (notePathMatch === null) {
|
||||||
return null;
|
return null;
|
||||||
|
|
@ -14,7 +14,7 @@ function getNotePathFromLink(url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNotePathFromLabel(label) {
|
function getNotePathFromLabel(label) {
|
||||||
const notePathMatch = / \(([A-Za-z0-9/]+)\)/.exec(label);
|
const notePathMatch = / \(([#A-Za-z0-9/]+)\)/.exec(label);
|
||||||
|
|
||||||
if (notePathMatch !== null) {
|
if (notePathMatch !== null) {
|
||||||
return notePathMatch[1];
|
return notePathMatch[1];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue