Opened 10 years ago

Closed 9 years ago

#2419 closed defect (worksforme)

Failure to Redirect After Login

Reported by: anonymous Owned by: adrian
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 10 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 10 years ago by anonymous

  • Cc czyzyk@… added

comment:3 Changed 9 years ago by SmileyChris

  • Resolution set to worksforme
  • Status changed from new to closed

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

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