From 4612f59b4fc292d979d4b7c4fdb24d07d2715def Mon Sep 17 00:00:00 2001 From: Siggsy Date: Tue, 25 Feb 2025 18:07:08 +0100 Subject: [PATCH] Frontmatter wikilinks should be resolved from root (#1248) --- plugs/index/page_links.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugs/index/page_links.ts b/plugs/index/page_links.ts index 1d177bf6..d2290401 100644 --- a/plugs/index/page_links.ts +++ b/plugs/index/page_links.ts @@ -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;