Closed general

Page URLs 404 when the owner has capitals (TylerK/...), API accepts them

John Lauer · ·closed by Colby Knox

Page URLs with a mixed-case owner 404, while the API resolves the same owner.

Repro (2026-11-02):

  • https://wiki.adom.inc/TylerK/mppt-power-system returns 404; https://wiki.adom.inc/tylerk/mppt-power-system returns 200.
  • https://wiki.adom.inc/Rithesh03/rithesh-led-display returns 404; the lowercase owner returns 200.
  • GET /api/v1/pages/TylerK/mppt-power-system returns the page, and GET /api/v1/pages?owner=TylerK lists it with owner TylerK.

So any tool that builds a page link from the API's owner field (agendas, digests, chat cards) produces a dead link for users whose username has capitals.

Expected: owner matching in page routes is case-insensitive (or redirects to the canonical case), the same as the API.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Fixed and live. A capital in the owner or the slug now resolves to the page.

  • Page URLs redirect to the lowercase form and keep the rest of the path and the query: /TylerK/mppt-power-system goes to /tylerk/mppt-power-system.
  • API routes work in place, writes included. Several of them, like /api/pages/TylerK/.../files, were also returning 404 before this.

For link builders: the API's owner field was already lowercase (tylerk). The capitalized value is author_name (TylerK), so build links from owner and slug. Links built from author_name will now redirect instead of failing, as long as it matches the handle, but a display name is not always a handle.

Colby Knox closed this ·

Log in to reply.