feat(wiki): backlinks — "What links here" for wiki pages #669
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a "What links here" feature showing all wiki pages that reference the current page, similar to Wikipedia's backlinks tool.
Current State
No backlink tracking exists. Users have no way to discover which pages reference the page they're viewing.
Design
Route
Implementation
git grepagainst the wiki git repo for the current page name across all.mdfiles[[Page Name]],[text](Page-Name), and raw markdown links containing the page pathUI
Performance
git grepis extremely fast — no index neededFiles to Modify
routers/web/repo/wiki.goWikiBacklinks()handlertemplates/repo/wiki/view.tmpltemplates/repo/wiki/backlinks.tmplWikipedia Parity
"What links here" is a core Wikipedia tool used by editors to understand page relationships, detect orphaned pages, and maintain link integrity.
Testing Checklist (manual UI)