Skip to content

Commit 4612f59

Browse files
authored
Frontmatter wikilinks should be resolved from root (#1248)
1 parent 280fa2c commit 4612f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugs/index/page_links.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ export async function indexLinks({ name, tree }: IndexTreeEvent) {
231231
asTemplate: false,
232232
};
233233
if (looksLikePathWithExtension(url)) {
234-
link.toFile = resolvePath(name, url);
234+
link.toFile = resolvePath(name, "/" + url);
235235
} else {
236-
link.toPage = resolvePath(name, parsePageRef(url).page);
236+
link.toPage = resolvePath(name, "/" + parsePageRef(url).page);
237237
}
238238
if (alias) {
239239
link.alias = alias;

0 commit comments

Comments
 (0)