You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return redirect("/", {
status: 302,
headers: {
"Set-Cookie": await destroySession(session), // this line will work, but it won't redirect in the browser
},
});
not work:
return new Response(null, {
status: 303,
headers: {
"Set-Cookie": await destroySession(session), // this line will work, but it won't redirect in the browser
Location: "/" // this line will not work
},
});
Reproduction
When v3_singleFetch mode is turned true, the return redirection in the action does not work.
not work:
not work:
not work:
not work:
the only way that STILL WORK:
System Info
Used Package Manager
pnpm
Expected Behavior
In the action's return, the expected page jump to the specified url is performed.
Actual Behavior
In the action's return, it doesn't jump the page to the parameter-specified url as expected.
The text was updated successfully, but these errors were encountered: