Opened 18 years ago
Closed 18 years ago
#2419 closed defect (worksforme)
Failure to Redirect After Login
Reported by: | anonymous | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | normal | Keywords: | login auth generic view |
Cc: | czyzyk@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Using the contrib.auth.views generic view for login(), the redirect_to variable doesn't seem like it's being populated, meaning the user is always forwarded to /accounts/profile even if /?next=/test ir any other arbitrary value is given to the login page.
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Cc: | added |
---|
comment:3 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I agree with shnur that this is how it's supposed to work.
Note:
See TracTickets
for help on using tickets.
As stated in documentation this behaviour is expected.
You have to provide form field with name
next
and value of url to redirect. This is because value ofnext
is obtained only fromPOST
values. In example form it is done using<input type="hidden">
element.For me this ticket should be resolved with
worksforme
status, but as I'm new here I'm hesitating to do it :).