v4: signing in comes back to the page that asked for it — a guest on a signed-in page, the dump editor, /notifications, /community, /settings or /manage, went to /login and, once signed in, to /, so a digest's link opened signed out lost its way; and since the redirect pushed, Back led to it again. RestrictedLoggedIn now replaces the page with /login?next=<the page>, as /authorize already did. A guest on a feed's "follow" tab, which only a link leads to, is sent there the same way, rather than shown the default tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -249,10 +249,10 @@ describe("Index feeds", () => {
|
||||
.toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("a guest on the follow tab gets the default feed, not a blank page", async () => {
|
||||
test("a guest on the follow tab is sent to sign in, and back", () => {
|
||||
route("GET /api/dumps", () => page([older]));
|
||||
setup("/follow");
|
||||
await screen.findByText("Old but loved");
|
||||
setup("/music/follow");
|
||||
expect(currentPath()).toBe("/login?next=%2Fmusic%2Ffollow");
|
||||
});
|
||||
|
||||
test("the Android share sheet opens the new-dump form with the link", async () => {
|
||||
|
||||
Reference in New Issue
Block a user