Wiki API: sub-pages with path separators return 404 #606
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
Wiki pages stored in subdirectories (e.g.
mcp/fleet-overview.md) render correctly in the web UI but are inaccessible via the REST API.Steps to Reproduce
mcp/,infrastructure/)https://git.mokoconsulting.tech/MokoConsulting/.profile-private/wiki/mcp/fleet-overviewGET /api/v1/repos/MokoConsulting/.profile-private/wiki/page/mcp%2Ffleet-overview→ 404GET /api/v1/repos/MokoConsulting/.profile-private/wiki/page/mcp-fleet-overview→ 404GET /api/v1/repos/MokoConsulting/.profile-private/wiki/pagesonly returnsHome— none of the sub-pages are listedExpected Behavior
GET /wiki/pagesshould list all wiki pages including those in subdirectoriesGET /wiki/page/{path}should resolve pages with path separators (URL-encoded slashes)Actual Behavior
Home) appear in the page listing/in its path returns 404 regardless of encodingImpact
Cannot programmatically read or update wiki pages in folder-based wikis via MCP or any API consumer. Workaround is cloning the wiki git repo directly.