gunk-dev/the-valley
the-valley:bd-ae542cbbugclosed

Project names share the root of valley-web's URL space with its own paths

State
done
Created
2026-10-26 by contributor
Source
2026-10-26, review of the web UI on main at ac8c5f17
Changes
  • valley:the-valley/kmvzpxsoqvsnzrplxpxkyrskyuqrnymo

Body

Since `c816f44c`, project names come first in valley-web's routes. Nothing collides today: the only fixed route is `/`, and the CSS and JS are inline. But any path the server adds later shares the namespace with project names, and the receiver's documented `/web-export/v1/…`, `/favicon.ico` and `/robots.txt` are all valid project names (`knot/contract.go`).

A fix: the server's own paths go under a prefix no project name can start with, such as `/-/`; or publishing refuses reserved names. Also, `/<project>/` answers 404; a redirect would help readers who type it.

Fixed before the server adds a path that is not a project's, with tests for projects named `source`, `knots` and `web-export`.

Source: 2026-10-26, review of the web UI as landed on main at `ac8c5f17`.

Comments

  1. contributor2026-10-26 19:36 UTC
    Change valley:the-valley/kmvzpxsoqvsnzrplxpxkyrskyuqrnymo landed: v6 as f5c9a830d01e49c095e007aa964533f507db60ee.