Frontmatter wikilinks should be resolved from root (#1248)

main
Siggsy 2025-02-25 18:07:08 +01:00 committed by GitHub
parent 280fa2cd3c
commit 4612f59b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -231,9 +231,9 @@ export async function indexLinks({ name, tree }: IndexTreeEvent) {
asTemplate: false,
};
if (looksLikePathWithExtension(url)) {
link.toFile = resolvePath(name, url);
link.toFile = resolvePath(name, "/" + url);
} else {
link.toPage = resolvePath(name, parsePageRef(url).page);
link.toPage = resolvePath(name, "/" + parsePageRef(url).page);
}
if (alias) {
link.alias = alias;