From: soufiane Date: Thu, 20 Jul 2023 16:35:17 +0000 (+0200) Subject: wait #6157 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=76a50c8ad27ec1715263e65bdff3354677f6ec45;p=pmi.git wait #6157 @0:10 --- diff --git a/app/Http/Middleware/RedirectClientIfAuthenticated.php b/app/Http/Middleware/RedirectClientIfAuthenticated.php index 1249a5b..b144809 100644 --- a/app/Http/Middleware/RedirectClientIfAuthenticated.php +++ b/app/Http/Middleware/RedirectClientIfAuthenticated.php @@ -38,7 +38,7 @@ class RedirectClientIfAuthenticated } if($request->path() === "ma-commande" && Cart::hasNoEcommerceProductInCart($request)) { - return redirect('/ma-selection'); + return redirect('/mon-panier'); } return $next($request); diff --git a/resources/js/app.js b/resources/js/app.js index 89651ab..368c866 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -560,7 +560,7 @@ const app = new Vue({ const id = event.target.dataset.id; let homeUrl = window.location.origin+'/'; - homeUrl += event.target.dataset.to ?? 'ma-selection' + homeUrl += event.target.dataset.to ?? 'mon-panier' axios.post('/ajax/savedCartToCurrent', {id: id}) .then(function (response) {