title: Make spring security add the return to url in the query string for the login page
body: <p>Earlier I <a href="https://stackoverflow.com/questions/4684323/get-original-request-url-in-spring-security-form-login-page">asked</a> if it was possible to get the original request url in the form login page in Spring Security 2. Turns out that actually won't help me, what I need is for the redirect to the form-login page to have that embedded in it as a request parameter. So if I have:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;form-login login-page="/login.html" /&gt; 
  </code></pre>
  
  <p>and try to access <code>/secure.html</code> I want to end up in <code>/login.html?return_to=/secure.html</code>.</p>