Goal
Fix 404 errors on individual wiki entity pages (/wiki/apoe, /wiki/trem2, etc.) while wiki category pages (/wiki/genes, /wiki/all-pages) work correctly.
Acceptance Criteria
☑ /wiki/apoe returns 200 (not 404)
☑ /wiki/trem2 returns 200 (not 404)
☑ Other entity pages like /wiki/proteins-apoe return 200
☑ Wiki category pages continue to work (/wiki/genes, /wiki/all-pages)
Approach
Issue already resolved on origin/main via task 22eb3b44-2093-496b-99fc-b88182f181f1:
- Commit 64a228dfd added a compatibility VIEW
wiki_entities that maps to wiki_pages
- This fixed the root cause where wiki entity pages were stored in wiki_pages but wiki_entities was a separate table
Dependencies
Dependents
Work Log
2026-04-13 — Verification
- Fetched origin/main and confirmed worktree is up to date
- Tested /wiki/apoe, /wiki/trem2, /wiki/genes, /wiki/all-pages — all return 200
- Confirmed fix is already on main via commit 64a228dfd (task 22eb3b44)
- Task da354aa6 was likely addressed contemporaneously with 22eb3b44 or the same fix resolved both
- Issue: Already resolved on main, no additional code changes needed
- Completing task with note that fix already landed on main