lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 292 forks source link

URL redirect 404 issue after login #204

Closed northtree closed 6 years ago

northtree commented 6 years ago

I have 404 URL Not Found issue on missing the question mark (?) for redirect URL.

127.0.0.1 - - [29/Mar/2018 16:50:41] "GET /map?map=here&ol=cluster HTTP/1.1" 302 - 127.0.0.1 - - [29/Mar/2018 16:50:41] "GET /user/sign-in?next=/mapmap%3Dhere%26ol%3Dcluster HTTP/1.1" 200 - 127.0.0.1 - - [29/Mar/2018 17:07:17] "POST /user/sign-in?next=/mapmap%3Dhere%26ol%3Dcluster HTTP/1.1" 200 - 127.0.0.1 - - [29/Mar/2018 17:07:19] "POST /user/sign-in?next=/mapmap%3Dhere%26ol%3Dcluster HTTP/1.1" 302 - 127.0.0.1 - - [29/Mar/2018 17:07:19] "GET /mapmap=here&ol=cluster HTTP/1.1" 404 -

BTW, I am using Flask-User 0.6.19 (Python 2.7).

How could I fix this issue? Thanks.

lingthio commented 6 years ago

What version of Flask-User are you using? A fix in make_safe_url() was fixed in Flask-User v0.6.20.

northtree commented 6 years ago

@lingthio Thanks for your help. My previous version is 0.6.19. Just upgrade to 0.6.20 and fix this issue.