Earlier I asked 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 th
If you are using your own login page and want to use the approach Raghuram suggested you must also put a hidden field with the name of the targetUrlParameter in the form.
For your example (ie. using *return_to* URL parameter) it would be something like: