Fix markdown relative links to /

This commit is contained in:
Sebastian Martinez
2024-07-23 09:56:12 +02:00
committed by Rūdolfs Ošiņš
parent da14ca6505
commit cbb6c557be
+1 -1
View File
@@ -71,7 +71,7 @@ export class Renderer extends BaseRenderer {
return `<a ${title ? `title="${title}"` : ""} href="${href.toLowerCase()}">${text}</a>`;
}
if ("path" in this.#route && !isUrl(href)) {
if (this.#route.resource === "project.source" && !isUrl(href)) {
href = routeToPath({
...this.#route,
path: canonicalize(href, this.#route.path || "README.md"),