#19658: Login redirects use wrong URL when application doesn't live on web
server
root
---------------------------------+--------------------
Reporter: david.reitter@… | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------
My application (running on 1.5rc1) sees a request whose view is decorated
with @permission_required('admin') redirected to a wrong login URL.
The WSGI application (on Apache2) is mounted in a subdirectory such as
www.example.com/foo/...
The redirect to the login page, given a request to
www.example.com/foo/exp/manage/ then goes to:
www.example.com/accounts/login/?next=/foo/exp/manage/
rather than
www.example.com/foo/accounts/login/?next=/foo/exp/manage/
LOGIN_URL is not set in my settings.py, as it wouldn't be portable without
further ado.
--
Ticket URL: <https://code.djangoproject.com/ticket/19658>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.