auth replace

This commit is contained in:
hamid zarghami
2025-12-24 16:32:42 +03:30
parent 86f23fb8ad
commit 40794a9cca
2 changed files with 2 additions and 2 deletions
@@ -90,7 +90,7 @@ const CartSummary = () => {
if (!isSuccess) {
event.preventDefault();
const redirectUrl = encodeURIComponent(pathname);
router.push(`/${name}/auth?redirect=${redirectUrl}`);
router.replace(`/${name}/auth?redirect=${redirectUrl}`);
return;
}
}}