Skip to content

fix(wiki): resolve relative links between vault files - #183

Merged
arthware-dev merged 1 commit into
mainfrom
fix/wiki-correspondent-links
Oct 6, 2026
Merged

arthware-dev merged 1 commit into
mainfrom
fix/wiki-correspondent-links

Conversation

@arthware-dev

Copy link
Copy Markdown
Contributor

Summary

  • The "From:" correspondent link on every document page in the wiki led to a 404. The vault writes links relative to the file, which Forgejo and Obsidian resolve, but the wiki resolves every link from the vault root.
  • Add a Quartz transformer that resolves relative vault links against their file's directory before the links are crawled. The vault files are unchanged.

The "From:" link on every document page in the wiki led to a 404. The
vault links files relative to each other, which Forgejo and Obsidian
resolve, but the wiki reads every link as a path from the vault root,
so `../../../correspondents/springfield-power.md` landed at
`/correspondents/springfield-power` instead of
`/family/correspondents/springfield-power`.

The wiki now resolves a relative link against its file's directory
before it builds the page. The vault files are unchanged.
@arthware-dev
arthware-dev merged commit 0ca0cca into main Oct 6, 2026
1 check passed
@arthware-dev
arthware-dev deleted the fix/wiki-correspondent-links branch October 7, 2026 11:51
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.

1 participant