Page 1 of 1

Register page redirect after successful register

Posted: Fri Mar 27, 2015 11:24 pm
by iivaan
I have demo application install in shared tomcat as heatclinic. When we do the register user and register success, it get redirected to the root site . How to redirect to home page.

https://qa1.paxovision.com/heatclinic/register -- > Register page
https://qa1.paxovision.com/ -- After successful register, it goes to this url
https://qa1.paxovision.com/heatclinic/ -- > i need to go to this url.

Is there and setting I have to do?

Thanks

Re: Register page redirect after successful register

Posted: Mon Mar 30, 2015 11:51 pm
by phillipuniverse
This should be in the blAuthenticationSuccessHandler bean.

Re: Register page redirect after successful register

Posted: Tue Mar 31, 2015 9:03 pm
by iivaan
Do you know what to change?

Re: Register page redirect after successful register

Posted: Thu Apr 02, 2015 9:58 am
by phillipuniverse
Yes, consult the spring security docs on authentication success handlers.

Re: Register page redirect after successful register

Posted: Thu Apr 09, 2015 11:51 pm
by iivaan
Sorry,
I still can not find out what to change.
Should I change
<!-- Sets the login success URL -->
<bean id="blAuthenticationSuccessHandler" class="org.broadleafcommerce.core.web.order.security.BroadleafAuthenticationSuccessHandler">
<property name="redirectStrategy" ref="blAuthenticationSuccessRedirectStrategy" />
<property name="defaultTargetUrl" value="/" />
<property name="targetUrlParameter" value="successUrl" />
<property name="alwaysUseDefaultTargetUrl" value="false" />
</bean>

I am not talking about after login redirect.
I am looking for after successfull Register redirect

Re: Register page redirect after successful register

Posted: Tue Oct 06, 2015 1:23 pm
by RafaelPLaza
I know it's an old post, but I had to to the same and I didn't know what to do...
In my case, I wanted to redirect to /account

I just changed <property name="defaultTargetUrl" value="/" />

to
<property name="defaultTargetUrl" value="/account" />

and it worked