Spring security has a nice feature, it remembers the url of request resource and redirect users to that resource after authentication is successful. But I want users always redirected to some other page, just after user logs in. How is it done?
Asked
Active
Viewed 756 times
1 Answers
4
In your spring-security configuration use following:
<http>
<form-login default-target-url='/some/other/page' always-use-default-target="true"/>
</http>

Pavel Rodionov
- 380
- 1
- 2
- 8