FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix (various/repairs): Use .md(x) extensions in relative links by jacobgkau · Pull Request #421 · system76/tech-docs · GitHub

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 commented Aug 21, 2026
edited
Loading

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 requested review from a team August 21, 2026 21:26
jacobgkau merged commit d82082a into master Aug 21, 2026
1 check passed
jacobgkau deleted the thelio-fixes branch August 21, 2026 21:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL