mirror of
https://github.com/glassflame/glassflame.github.io.git
synced 2024-11-22 16:14:26 +00:00
Disallow clicking on non-defined wikilink paths
This commit is contained in:
parent
c422e4db85
commit
3ea938e85d
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ export class WikilinkElement extends CustomElement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(path !== undefined) {
|
if(path !== undefined && this.vault.fileIndex.paths?.includes(path)) {
|
||||||
this.anchorElement.href = this.browse.urlFor({path}).toString()
|
this.anchorElement.href = this.browse.urlFor({path}).toString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue