v1.56.94: fix @handle nav link → /~handle/settings; add GET /~:username redirect. The bare /~username had no route and fell through to the /:name catch-all (repoPage), which rejected the ~ as a bad repo name. Added router.get("/~:username", accountProfileRedirect) before the catch-all — 302s to /~username/settings (covers manual visits + the operator-handle nav link). Changed the contributor/team nav link so @handle points straight to /~handle/settings and removed the now-redundant separate settings link (pages.zig navLinksHtml). Updated the AccountNav test to assert the handle's new settings target. Used res.headerOpts for the redirect (the codebase's pattern; res.header doesn't exist). musl ReleaseSafe build exit 0; zig build test 646 pass / 1 pre-existing team-tier live-PG fail.
$ koh steal kepr.uk/kepr@35a19da04189
·
parent: ed675d8ba104
discussion
log in to leave a comment.