spring-guides / gs-securing-web

Securing a Web Application :: Learn how to protect your web application with Spring Security.
http://spring.io/guides/gs/securing-web/
Apache License 2.0
364 stars 447 forks source link

redirect to a error page instead of previous requested page after login #56

Closed hay-chan closed 1 year ago

hay-chan commented 4 years ago

Hi, I am trying to run the 'completed' demo in my local. I am expecting to go to the 'hello' page after login, but it redirect to a 'Error Page'. I tried SavedRequestAwareAuthenticationSuccessHandler, but it does not work, it still goes to the error page.

How should I do to land to the previous page after login?

Buzzardo commented 1 year ago

I can't re-create the problem.