From b0c3112d71a7b7e34853a570648365078164fc77 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 6 Aug 2013 16:31:39 +0200 Subject: [PATCH] fix default successUrl on addArticle action --- core/lib/Thelia/Action/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Action/Cart.php b/core/lib/Thelia/Action/Cart.php index 46c12cfe5..ab39d227b 100755 --- a/core/lib/Thelia/Action/Cart.php +++ b/core/lib/Thelia/Action/Cart.php @@ -103,7 +103,7 @@ class Cart implements EventSubscriberInterface ->save(); ; - Redirect::exec($cartAdd->getSuccessUrl()); + Redirect::exec($cartAdd->getSuccessUrl($request->getUriAddingParameters(array("addCart" => 1)))); } catch (PropelException $e) { \Thelia\Log\Tlog::getInstance()->error(sptinf("error on adding item to cart with message : %s", $e->getMessage())); $message = "Impossible to add this article to your cart, please try again";