fix: rewrite relative markdown links to blob URL in README renderer
Relative links in README files (e.g. docs/testing.md) were resolving against the page origin instead of the repo blob path, causing 404s.
- Add base_url param to _markdown() filter; when set, relative links are rewritten to base_url/path before rendering - Pass base_url + '/blob/' + ref from repo_home.html so all relative README links resolve to the correct blob viewer page - Absolute URLs, anchors (#), and protocol-relative URLs are untouched
sha256:a6b164741e1b4997511f4a471ac9232a721280b0e7b8266c8a56a435840fa5f7
sha
sha256:ed3acef130c08eda04a74c3b7db84966f8c16b80f406574b05861e0d076f99f1
snapshot
← Older
Oldest on task/fix-readme-relative-links
All commits
Newer →
Latest on task/fix-readme-relative-links
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:a6b164741e1b4997511f4a471ac9232a721280b0e7b8266c8a56a435840fa5f7 --body "your comment"
No comments yet. Be the first to start the discussion.