-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could I redirect complete page to original login page? #137
Comments
I think you are looking for "?next=..." query string parameter. |
I'm using HTTP_REFERER in request.META, but I'm not sure it'll work forever.. |
@geekan, let's clarify a little, your user is at a page, clicks login and after login he should be back to the original page, is that what you are looking for? If that's the case, build your login URLs to have the current path in a next parameter, like: <a href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}">Login with Google</a> |
Understand. |
@geekan, as usual, always escape querystring parameters. |
Thanks! |
I've searched it for a long time, but I don't find a configuration for it.
The text was updated successfully, but these errors were encountered: