fix cookie name (#4294)
This commit is contained in:
1 parent
1bb987556d
commit
6ee878aab0
1 file changed
+1
-4
@@ -147,10 +147,7 @@ export async function getServerSideProps(ctx: AppGetServerSidePropsContext) {
|
|||||||
if (cookies && cookies["return-to"]) {
|
if (cookies && cookies["return-to"]) {
|
||||||
const returnTo = cookies["return-to"];
|
const returnTo = cookies["return-to"];
|
||||||
if (returnTo) {
|
if (returnTo) {
|
||||||
ctx.res.setHeader(
|
ctx.res.setHeader("Set-Cookie", "return-to=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT");
|
||||||
"Set-Cookie",
|
|
||||||
"returnToGettingStarted=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"
|
|
||||||
);
|
|
||||||
return {
|
return {
|
||||||
redirect: {
|
redirect: {
|
||||||
destination: `${returnTo}`,
|
destination: `${returnTo}`,
|
||||||
|
|||||||
Reference in new issue
Block a user