Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Fix markdown relative links to `/`
Sebastian Martinez committed 1 year ago
commit cbb6c557bef15d2da6b65aba727d0071d693c4f2
parent da14ca6
1 file changed +1 -1
modified src/lib/markdown.ts
@@ -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"),