1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-10-16 14:37:33 +00:00

Disallow clicking on non-defined wikilink paths

This commit is contained in:
Steffo 2023-11-06 18:01:33 +01:00
parent c422e4db85
commit 3ea938e85d
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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()
}
}