Make spring security add the return to url in the query string for the login page

前端 未结 3 640
别跟我提以往
别跟我提以往 2020-12-10 09:27

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

3条回答
  •  没有蜡笔的小新
    2020-12-10 10:06

    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:

    " />
    

提交回复
热议问题