title: Spring Security: How to get the initial target url
body: <p>I am using the spring security to restricted urls. I am trying to provide signup and login page, on the same page.</p>
  
  <p>On login spring security transfers to the restricted page. However i am trying to pass the target url to the signup process, so that after signup we can redirect to the restricted page.</p>
  
  <p>How to get the actual URL that user was redirected from. </p>
  
  <p>Any Ideas?</p>