Fix relative file navigation
Navigating to a project.source view without defining a path, would
skip the canonicalization of the path and end up returning /nodes/seed.radicle.garden/CONTRIBUTING.md which isn’t a valid link and would throw errors.
By instead of requiring this.#route to have a path, checking if this.#route.resource === "project.source we can fallback to README.md and don’t run into errors.
1 file changed
+1
-1
da14ca65
→
cbb6c557
modified src/lib/markdown.ts
@@ -71,7 +71,7 @@ export class Renderer extends BaseRenderer {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|