auth replace
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -50,7 +50,7 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
|
||||
} else {
|
||||
e.stopPropagation();
|
||||
toast('ابتدا لاگین کنید', 'error');
|
||||
router.push(`/${name}/auth`);
|
||||
router.replace(`/${name}/auth`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user