Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#12194 closed defect (bug) (invalid)

using FORCE_SSL_LOGIN and wp-login.php?redirect_to=somepage sometimes redirects to https

Reported by: vanillaxtrakt's profile vanillaxtrakt Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.6
Component: General Keywords: FORCE_SSL_LOGIN FORCE_SSL_ADMIN wp-login.php redirect SSL https
Focuses: Cc:


I'm using Wordpress MU 2.8.6, and this also seems to occur in Wordpress 2.7.1.

If you have FORCE_SSL_LOGIN enabled in wp-config.php, are logged out of Wordpress, and visit any page through wp-login.php?redirect_to=somepage, it will redirect to https.

For example, if you're not logged in and you visit:

after logging in, it will send you to:

or if you visit (once again, you have to be logged out):

it will send you to:

It doesn't appear to do this for backend pages (wp-admin).

This bug shows up particularly when using plugins that make you log in to see protected blog content, such as the More Privacy Options plugin, although the bug manifests itself with or without those plugins installed.

I enabled FORCE_SSL_ADMIN and tested the same thing, and it creates a redirect loop.

Change History (2)

#1 @wpmuguru
14 years ago

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



The redirect_to is a relative (to the current url) link which is running under SSL. Use an absolute link for redirect_to.

#2 @nacin
14 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.