Skip to content

Commit 0f6e621

Browse files
committed
Cleanup
1 parent ceab5e4 commit 0f6e621

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/controllers/CartController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ public function actionLoadCart(): ?Response
421421
}
422422
}
423423

424-
// Load the cart (existing logic)
424+
// Set the token to null on the request so it will not be added to the redirect URL that is generated
425+
$this->request->setToken(null);
425426
$redirect = UrlHelper::siteUrl(path: $loadCartRedirectUrl, siteId: $cart->orderSiteId);
426427
$carts->forgetCart();
427428
$carts->setSessionCartNumber($number);
@@ -880,8 +881,6 @@ public function actionCartChallenge(): Response
880881
return $this->renderCartEmailChallenge($cart, $cartNumber);
881882
}
882883

883-
Craft::$app->getSession()->setNotice(Craft::t('commerce', 'A cart recovery link has been sent to {email}', ['email' => $cart->getMaskedEmail()]));
884-
885884
return $this->redirect(UrlHelper::actionUrl('commerce/cart/cart-sent', ['hash' => $cartNumberHash]));
886885
}
887886

0 commit comments

Comments
 (0)