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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

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


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

commit b6b745a7a14a3f5d2d47c9c6247611e5d0ddc617
Author: Jacques Le Roux <[hidden email]>
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 262d132..e7ba1bd 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"/>