Opened 12 years ago

Closed 11 years ago

#2419 closed defect (worksforme)

Failure to Redirect After Login

Reported by: anonymous Owned by: Adrian Holovaty
Component: Contrib apps Version: master
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: UI/UX:


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 Changed 12 years ago by shnur

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 of next is obtained only from POST 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 :).

comment:2 Changed 12 years ago by anonymous

Cc: czyzyk@… added

comment:3 Changed 11 years ago by Chris Beaven

Resolution: worksforme
Status: newclosed

I agree with shnur that this is how it's supposed to work.

Note: See TracTickets for help on using tickets.
Back to Top