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 shnur, 18 years ago

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 by anonymous, 18 years ago

Cc: czyzyk@… added

comment:3 by Chris Beaven, 18 years ago

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