Make WordPress Core

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#1239 closed enhancement (fixed)

wp-login.php does not allow redirect_to on logout

Reported by: error's profile error Owned by: skippy's profile skippy
Milestone: Priority: normal
Severity: normal Version: 1.5.2
Component: Administration Keywords: bg|has-patch bg|dev-feedback
Focuses: Cc:

Description

When logging in with wp_login.php it is possible to pass a redirect_to parameter to control the page the user gets after login. There is no corresponding way to control the page the user gets after logout. This is a request to implement the redirect_to parameter for logout. Thank you!

Attachments (1)

wp-login.php.diff (1.2 KB) - added by error 20 years ago.

Download all attachments as: .zip

Change History (12)

#2 @error
20 years ago

  • Patch set to No

#3 @MC_incubus
20 years ago

  • Patch changed from No to Yes
  • Resolution changed from 10 to 20

Uses similar code to the 'login' redirect_to parameter to accept and use a redirect_parameter on logout.

It also fixes issue 1240, as both issues were related to the same general "login/logout form on the public blog that shoves you back to the page you were viewing after login/logout" idea by io_error.

@error
20 years ago

#4 @skippy
20 years ago

  • Keywords bg|has-patch bg|dev-feedback added
  • Owner changed from anonymous to skippy
  • Status changed from new to assigned

#5 @markjaquith
20 years ago

I'm still in favor of this.

#6 @skippy
20 years ago

  • Milestone set to 1.5.2

#7 @matt
20 years ago

  • Milestone changed from 1.5.2 to 1.6

#8 @davidhouse
20 years ago

This makes sense, but not in the same way as logging in does. If you were on admin page X and click log out, there's no point in being redirected back to X as you're now logged out and can't view that page. Actually, redirecting back to X would bounce you back to the log in page, so there'd be no net effect.

However, if the redirect_to parameter pointed to a non-admin page, such as the blog home page, this would make sense. Personally, i think we should always redirect back to the blog home after logging out. The current situation, the login screen displayed immediately after logging out, is useless: they've just logged out, why would they then immediately log back in again?

#9 @markjaquith
20 years ago

  • Version changed from 1.5.1 to 1.5.2

#10 @matt
19 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [3044]) Allow redirect on logout, fixes #1239

#11 @(none)
18 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.