wiki: links to non-page files 404 #283

closed cmc opened this on 2026-09-28 04:33 UTC · bug wiki

Discussion

cmc 2026-09-28 04:33 UTC

A wiki link to a file that is not a page (an .svg, .txt, .pdf) is rewritten to the page route, /wiki/<path>, and 404s. Images (src) go to /wiki/_raw/; plain links do not. Seen on the Architecture overview's diagram column (worked around in !476).

  • In rewriteWikiLinks, send an href whose target is an existing non-page file to /wiki/_raw/<path>.
  • Test in internal/httpd/wiki_test.go.

referenced in commit fc5b1b67a2 by cmc: wiki: Architecture overview names diagrams; titles drop their numbers; gaps filed

2026-09-28 04:36 UTC

referenced in commit 4e0958a163 by cmc: plans: open issues from the architecture and UX reviews

2026-09-28 05:43 UTC

closed by cmc in commit 9df917e73a: wiki: a link to an existing non-page file resolves to _raw, not the page route

2026-09-28 23:09 UTC