Skip to content

[Bug]: Express-style /users/:id validates and silently becomes a literal path #583

Closed

Description

@jimhoyd

Runtime revision and environment

main at 645239b; core 0.5.9 packed with npm pack and installed into scratch projects, run as llms.txt instructs (npx --no --package @jimhoyd/urlcode urlcode …); MCP driven over stdio. Node 26, macOS. Found in a hands-on usability audit (agent and human perspectives).

Minimal reproduction

A route /users/:id passes validate, audit reports ready: true, and GET /users/42 returns 404. urlcode explain /users/42 already shows nearest: /users/:id, so the runtime knows.

Relevant output

validate: valid; audit: ready; request: 404.

Suggested fix

Reject :name segments with a hint to use {name} plus a parameters entry (agents trained on Express/Next will write this constantly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions