Author: jleroux
Date: Tue Nov 27 11:18:07 2018
New Revision: 1847528
URL:
http://svn.apache.org/viewvc?rev=1847528&view=revLog:
Fixed: User should be redirected to view cart page after adding the product
from compare product screen
(OFBIZ-10667)
Currently user is navigating add item page instead of view cart page while
adding product to cart from compare product screen. User gets stuck after
navigating over add item page.
Steps to replicate the issue:
1. Go to eCommerce application.
2. Click on add to compare button for the products -
Round Gizmo and Tiny Chrome Widget.
3. Click on 'Compare Products' from right bar.
4. Click on 'Add to cart' over compare product screen.
Expected behaviour : User should be redirected to view cart page instead
of add item page.
Thanks: Ratnesh Upadhyay for report and Ritesh Kumar for the fix
Modified:
ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1847528&r1=1847527&r2=1847528&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Tue Nov 27 11:18:07 2018
@@ -240,7 +240,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" save-last-view="true"/>
+ <response name="success" type="view" value="showcart" save-last-view="true"/>
<response name="survey" type="view" value="survey"/>
<response name="product" type="view" value="product"/>
<response name="viewcart" type="request-redirect-noparam" value="showcart"/>