After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605183 - Don't use the LOGIN_REDIRECT_URL variable
Don't use the LOGIN_REDIRECT_URL variable
Status: RESOLVED FIXED
Product: snowy
Classification: Deprecated
Component: general
git master
Other Linux
: Normal normal
: 0.2
Assigned To: snowy-maint
snowy-maint
Depends on:
Blocks:
 
 
Reported: 2009-12-22 00:22 UTC by Olivier Le Thanh Duong
Modified: 2010-03-01 18:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use LOGIN_REDIRECT_URL if no other URL is given (1.03 KB, patch)
2010-03-01 15:03 UTC, Sander Dijkhuis
accepted-commit_now Details | Review

Description Olivier Le Thanh Duong 2009-12-22 00:22:46 UTC
Hi,

I set the LOGIN_REDIRECT_URL variable in the setting.py but I still get redirect to the wrong url (the root of the webserver) after login
Comment 1 Sander Dijkhuis 2010-03-01 15:03:29 UTC
Created attachment 154951 [details] [review]
Use LOGIN_REDIRECT_URL if no other URL is given

Django's login view uses settings.LOGIN_REDIRECT_URL by default,
so there is no need to specify the 'next' parameter.

No behavior is changed, but it is now possible to enter a custom
redirect URL in the setings.
Comment 2 Brad Taylor 2010-03-01 15:16:13 UTC
Review of attachment 154951 [details] [review]:

Looks good to me.  Sander, do you have commit access on git.gnome.org, or should I commit this for you?
Comment 3 Sander Dijkhuis 2010-03-01 18:13:03 UTC
Thanks, I have committed the fix.