Frontmatter wikilinks should be resolved from root (#1248)
parent
280fa2cd3c
commit
4612f59b4f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue