Skip to content

fix (various/repairs): Use .md(x) extensions in relative links - #421

Merged
jacobgkau merged 1 commit into
masterfrom
thelio-fixes
Aug 21, 2026
Merged

fix (various/repairs): Use .md(x) extensions in relative links#421
jacobgkau merged 1 commit into
masterfrom
thelio-fixes

Conversation

@jacobgkau

@jacobgkau jacobgkau commented Aug 21, 2026

Copy link
Copy Markdown
Member

Newly discovered Astro quirk: pages can be browsed with or without a trailing slash (or with /index.html), but relative links were breaking with the trailing slash since they weren't taking that extra directory layer into account (but only on the live site for some reason; they worked fine when running it locally).

It appears that if we instead link to a source .md or .mdx file, Astro instead generates an absolute link that will always work. This also has the advantage of making the links work on GitHub (which is why we don't just put in absolute links ourselves).

@jacobgkau
jacobgkau requested review from a team August 21, 2026 21:26
Comment thread src/content/docs/models/lemp14/repairs.md
@jacobgkau
jacobgkau merged commit d82082a into master Aug 21, 2026
1 check passed
@jacobgkau
jacobgkau deleted the thelio-fixes branch August 21, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants