From 76a50c8ad27ec1715263e65bdff3354677f6ec45 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 20 Jul 2023 18:35:17 +0200 Subject: [PATCH] wait #6157 @0:10 --- app/Http/Middleware/RedirectClientIfAuthenticated.php | 2 +- resources/js/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5