You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2020/01/25 09:57:26 UTC

[ofbiz-plugins] branch trunk updated: Fixed: User should not be directed to main page after adding product to cart from showcart page (OFBIZ-11223)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 15750b9  Fixed: User should not be directed to main page after adding product to cart from showcart page (OFBIZ-11223)
15750b9 is described below

commit 15750b9d5ad0f1da0c67fb6da7e7f81cb7997d8c
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Sat Jan 25 10:57:15 2020 +0100

    Fixed: User should not be directed to main page after adding product to cart
    from showcart page
    (OFBIZ-11223)
    
        Navigate to URL: https://demo-trunk.ofbiz.apache.org/ecomseo/
        Click on View Cart at top-right of the page (User will be directed to showcart page)
        Enter product number (Eg: GZ-2644)
        Enter quantity
        Click on add to cart
    
    Product is added to the cart but user is directed to main page of ecommerce.
    
    
    Thanks: Arpit Mor for report, Sourabh Punyani for the fix
---
 ecommerce/webapp/ecommerce/WEB-INF/controller.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
index 4bbaf2d..cde44be 100644
--- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
+++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
@@ -241,7 +241,7 @@ under the License.
     <request-map uri="additem">
         <security https="false" auth="false"/>
         <event type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
-        <response name="success" type="view-last" value="showcart"/>
+        <response name="success" type="view-last" save-last-view="true" value="showcart"/>
         <response name="survey" type="view" value="survey"/>
         <response name="product" type="view" value="product"/>
         <response name="viewcart" type="request-redirect-noparam" value="showcart"/>