File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments