Hi,
Under certain circumstances, I have a problem with Ofbiz (incorrectly) redirecting to the "Profile" page after clicking "Add to Cart". The steps I took to produce the problem are as follows: - Login (as admin) - Click on "Profile" and "Update" postal address. - "Save" the postal address. At this point, Ofbiz will load the "Profile" page again. - Click on "Main" - Add "Round Gizmo" or "Tiny Chrome Widget" to cart At this point, Ofbiz will (unexpectedly) reload the "Profile" page yet again. If I logout and login again, the unexpected reloading of the profile page stops occurring. Can anyone tell me why this behaviour is happening and/or how I might stop it? Thank you. Regards Brett Sheeran |
Administrator
|
Is this reproductible on demo server?
Jacques From: "BrettS" <[hidden email]> > Hi, > > Under certain circumstances, I have a problem with Ofbiz (incorrectly) > redirecting to the "Profile" page after clicking "Add to Cart". The steps I > took to produce the problem are as follows: > - Login (as admin) > - Click on "Profile" and "Update" postal address. > - "Save" the postal address. At this point, Ofbiz will load the "Profile" > page again. > - Click on "Main" > - Add "Round Gizmo" or "Tiny Chrome Widget" to cart > > At this point, Ofbiz will (unexpectedly) reload the "Profile" page yet > again. > > If I logout and login again, the unexpected reloading of the profile page > stops occurring. > > Can anyone tell me why this behaviour is happening and/or how I might stop > it? > > Thank you. > > Regards Brett Sheeran > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Ofbiz-Returning-to-Wrong-Page-After-Add-to-Cart-tp2195604p2195604.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
In reply to this post by BrettS
Hi Brett,
This is occured because in the controller the response of the request "editcontactmech" having save-last-view="true" & in the request "additem" have response type="view-last". so its redirecting you to the viewprofile page. so by doing save-last-view="false" then it will work. -- Thanks & Regards: Ankit Jain Jr. Enterprise Software Developer Hotwax Media Pvt. Ltd. www.hotwaxmedia.com BrettS wrote: > Hi, > > Under certain circumstances, I have a problem with Ofbiz (incorrectly) > redirecting to the "Profile" page after clicking "Add to Cart". The steps I > took to produce the problem are as follows: > - Login (as admin) > - Click on "Profile" and "Update" postal address. > - "Save" the postal address. At this point, Ofbiz will load the "Profile" > page again. > - Click on "Main" > - Add "Round Gizmo" or "Tiny Chrome Widget" to cart > > At this point, Ofbiz will (unexpectedly) reload the "Profile" page yet > again. > > If I logout and login again, the unexpected reloading of the profile page > stops occurring. > > Can anyone tell me why this behaviour is happening and/or how I might stop > it? > > Thank you. > > Regards Brett Sheeran > |
In reply to this post by BrettS
if this is consistent I would say it is a controller change that needs
to be corrected. ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> BrettS sent the following on 5/11/2010 10:17 PM: > Hi, > > Under certain circumstances, I have a problem with Ofbiz (incorrectly) > redirecting to the "Profile" page after clicking "Add to Cart". The steps I > took to produce the problem are as follows: > - Login (as admin) > - Click on "Profile" and "Update" postal address. > - "Save" the postal address. At this point, Ofbiz will load the "Profile" > page again. > - Click on "Main" > - Add "Round Gizmo" or "Tiny Chrome Widget" to cart > > At this point, Ofbiz will (unexpectedly) reload the "Profile" page yet > again. > > If I logout and login again, the unexpected reloading of the profile page > stops occurring. > > Can anyone tell me why this behaviour is happening and/or how I might stop > it? > > Thank you. > > Regards Brett Sheeran |
In reply to this post by BrettS
Hi,
Thank you to everybody who responded. I changed the controller as per Ankit's suggestion and that fixed my problem. In response to Jacques's question, I don't know exactly what you mean by "demo server". I did download a copy of Ofiz 9.04 (stable) and did a clean install on another machine. That clean install had the same problem. However, I also tried this URL and was not able to reproduce the problem there: http://demo-stable.ofbiz.apache.org/ecommerce/control/main But, the profile editing pages of demo-stable look completely different. Thanks again. Regards Brett S |
Administrator
|
Not sure why the demo server (indeed the link you used) works (maybe a bug fixe has been introduced since) but anyway, as your
problem is fixed we can forget it Jacques From: "BrettS" <[hidden email]> > > Hi, > > Thank you to everybody who responded. > > I changed the controller as per Ankit's suggestion and that fixed my > problem. > > In response to Jacques's question, I don't know exactly what you mean by > "demo server". I did download a copy of Ofiz 9.04 (stable) and did a clean > install on another machine. That clean install had the same problem. > However, I also tried this URL and was not able to reproduce the problem > there: > http://demo-stable.ofbiz.apache.org/ecommerce/control/main > > But, the profile editing pages of demo-stable look completely different. > > Thanks again. > > Regards Brett S > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Ofbiz-Returning-to-Wrong-Page-After-Add-to-Cart-tp2195604p2197060.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Free forum by Nabble | Edit this page |