Page 1 of 1

Login should not redirect to home page

Posted: Tue Jul 23, 2013 9:14 am
by ankitpatni
Hi,

I would like to know that how to stop login redirection from checkout page/product page or category page.

In current demo site if user want to login under hot-sauces or under merchandise page then after login he will be redirect to home page. In practical use of e-commerce site user should not move out of current page which he was before login. Is there any ways to stop this login redirection and maintain the user on his current page where he requested for login??

Please let me know how can i current this feature in broadleaf commerce 2.2.0 version.

Thanks & Regards,
Ankit Patni

Re: Login should not redirect to home page

Posted: Fri Jul 26, 2013 11:10 am
by elbertbautista
Redirection is handled by your implementation of Spring Security.

The feature you are talking about is a common feature, but Spring Security doesn't handle this out-of-the-box.
One of the members of the Spring Security team has come up with a suggested approach to this.
You can read his suggestion here:

http://forum.springsource.org/showthread.php?128480-Redirecting-to-original-(unauthenticated-page)-after-spring-security-openid-authentic