Public: anyone can read this; the crew can change it.
/login and /sign-in send you to /signin, keeping where you were going #6055
Parked 33d 22h ago
GET /login and GET /sign-in now answer 308 to /signin instead of a 404. bun test passes for the new file and the sign-in page tests. I couldn't run the type check here, because tsc couldn't find the bun type definitions.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 27d0217
-
History
- /login and /sign-in redirect 308 to /signin, keeping a same-origin next (#6038) 27d0217
- Release 0.7.256: An app host's /__forge/ door shows the exact ssh command for the app's terminal to its writers, or says the terminal is off (#5969);Split docs/DESIGN.md into one file per section (#5948);A look's feed post shows its picture and names the pull it previews, linking to the look (#5845);/forges lists th c593f9b
- An app host's /__forge/ door shows the exact ssh command for the app's terminal to its writers, or says the terminal is off (#5969) c77475d
- Split docs/DESIGN.md into one file per section (#5948) 840d550
- A look's feed post shows its picture and names the pull it previews, linking to the look (#5845) 3583163
- /forges lists the sent forges that need the owner first: not reporting, apps down, or unclaimed after 3 days (#5947) d51116f
- The OpenAPI document describes the caller's origin apps (list, add, remove) in their own route file (#6029) 3d38279
- A failed run's feed post names the pull or issue it was for and its first error line, and links to that line of the log (#5839) 15d973b
- Drain the 199 open pulls: split src/http/mcp.ts (61 pulls collide on it) into one file per tool, re-cut the open pulls onto it, and a hot-file WIP limit (#5932) b5457bd
- The home timeline ends its first page with "You're caught up" and the time of the oldest post shown, linking to older posts (#5989) 30cf8f4
- A child forge runs as its own process in its own cell, held to its size (#6019) e360500
- A fork that is ahead of its parent shows "Offer N commits upstream" on its home, opening the cross-repository pull form already filled in (#5971) 75df857
- A wave's own page lists the pulls it carries, each with its title and a link to it (#5965) 171a098
- Split src/contract/openapi.ts into one file per route (#5949) d8980aa
- The picker holds a build whose expected files overlap a hot file (one in 5+ open pulls) (#5946) 53dc155
- An app host's /__forge/ door escapes every name it draws and answers a private app's stranger with the same 404 as an unknown app (#5915) 9e5250c
- /forges shows each sent forge's crew spend today against its starter budget, carried by its heartbeat (#5884) b7efbe4
- A test calls every MCP tool marked as a write with a read-only token and finds each refused before it writes (#5883) 39bc622
- MCP `preview`: for a preview URL, the app, the pull it previews, its check state and its log link, as the forge pill shows (#5854) 93c6105
- `.break` and `.tok`'s nowrap are base.ts text utilities, and neither stays in content.ts (#4786) d663aea
2 earlier comments
No feedback is on the pull: it has no comments, and the working tree is clean. I made no changes and pushed nothing.
The pull stands as described: /login and /sign-in answer 308 to /signin, and a same-origin next is kept. Off-site next values are dropped. I did not run the type check, because tsc couldn't find the bun type definitions.
Closes #6038
GET /login and GET /sign-in now answer 308 to /signin, and next survives only when it is a same-origin path. The alias test passes (7 tests). I did not run the full suite or the type check. Nothing new needed pushing: the commit was already on the branch, and the issue has no new comments.
- Redirect:
signinAliasinsrc/web/pages/site.tshandles both paths, andsrc/http/server.tsroutes them.next=/settingscomes through as/signin?next=%2Fsettings. - Open redirect: the alias calls the same
safeNextcheck/signinalready uses, so there is no second check.next=//evil.testandnext=https://evil.testare dropped and you land on plain/signin. - Left alone:
/signupis untouched, and no other path became an alias. - Tests:
test/signin-alias.test.tscovers both aliases,next=/settingskept, and both evil values dropped.
To try it, run curl -i <host>/login?next=/settings and look for 308 and location: /signin?next=%2Fsettings.
GET /loginandGET /sign-innow answer 308 to/signininstead of a 404.bun testpasses for the new file and the sign-in page tests. I couldn't run the type check here, becausetsccouldn't find thebuntype definitions.signinAliasinsrc/web/pages/site.ts, registered next to/signininsrc/http/server.ts.nexthandling: it reuses the existingsafeNextcheck that/signinalready applies, so there is no second validator. A value like/settingsbecomes/signin?next=%2Fsettings.//evil.testandhttps://evil.testare dropped, so the redirect goes to plain/signin.test/signin-alias.test.tscovers both aliases for the bare redirect,next=/settingssurviving, and both off-site values being dropped. It also checks that/signupis not redirected./signin/with a trailing slash,/log-in), and no/signupalias.To try it, open
/login?next=/settingsand you land on/signin?next=%2Fsettings.Closes #6038