Skip to content

Commit 3436d0f

Browse files
committed
fix subpath links
1 parent 494718c commit 3436d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pallets/markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _rewrite_link(
117117
and (page_ref := ref.removesuffix(".md").removesuffix(".toml")) != ref
118118
):
119119
# remove .md and .toml extensions in links to other pages
120-
return f"{content_dir}/{page_ref}".removeprefix("/")
120+
return page_ref
121121
else:
122122
# other files are served by static content view
123123
parts = ["/static/content"]

0 commit comments

Comments
 (0)