title: Spring MVC and login redirect
body: <p>I have a web application, when a use click on a personal profile link, if he is not logged in, I would like to redirect him to login page, then when he logs in, I would to send him back to the link he had originally clicked.</p>
  
  <p>In this case his personal profile.</p>
  
  <p>I have done the part until where redirecting him to login page, but I am trying to find out how to remember his initial click, and redirect to this page after he successfully logs in.</p>
  
  <p>I am using Spring Security for logins.</p>