Opened 8 years ago

Closed 7 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.

Attachments (0)

Change History (3)

comment:1 Changed 8 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 8 years ago by anonymous

  • Cc czyzyk@… added

comment:3 Changed 7 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.