• David

    (@dlim_vernier)


    After upgrading to WP 3.1 and Theme My Login 6.1, the redirect after a successful login is broken.

    The redirect URL that it’s attempting to go to is:
    https://{server}/{tml-page}/{redirect_url}

    When it should be:
    {redirect_url}

    Any thoughts?

Viewing 7 replies - 1 through 7 (of 7 total)
  • My redirect isn’t broken, but am also having problems. I’ve added a custom URL, but it still redirects to the dashboard.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Are you redirecting to a URL within your own domain or an external domain? It sounds like it may have to do with the wp_safe_redirect() function, which only allows redirecting to specific hosts. It also requires a properly formed URL.

    Thread Starter David

    (@dlim_vernier)

    @peteratomic I had a similar problem prior, but I ignored it because going to the admin was sufficient.

    @jeff I go to a custom login page behind HTTPS, and after logging in, I often go back to HTTP, but it is always the same domain.

    I’m having the same issue. What appears to be happening is the URL seems to be encoding twice, leading to the login page URL like so:

    (note that this is an SSL site, for whatever that’s worth)

    https://home.myurl.gov/home/login/?redirect_to=https%253A%252F%252Fhome.myurl.gov%252Fhome%252Fwp-admin%252F&reauth=1

    See what’s happening? The percentage signs in the encoded URL are themselves being encoded.

    Any idea what’s gone wrong and/or what can be done to fix? Also, this is ONLY happening on production (an SSL site), but not on dev (a non-SSL site).

    I’m running WordPress 3.2.1 and Theme My Login 6.1.4.

    Thanks.

    — t

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Interesting. I suppose you have the full URL, containing “http(s)” within the Custom Redirection fields?

    I’ve played around with “/” as well as the full URL as well as not having that module active at all, and nothing seems to make a difference.

    Since leaving the first post, I managed to get my development machine running with a self-signed SSL certificate, hoping that I could recreate the problem locally. But I couldn’t. Really weird. Same code, the only difference in my control was using a .tld TLD on my dev machine vs. the .gov TLD on production.

    So finally I just hacked the plugin to grep for the percentage sign in the decoded URL string ($redirect_to), and if it was found, re-decode it.

    Haven’t gotten the hacked code onto production yet (that’s a whole separate frustration), but I’m hoping it’ll do the trick.

    — tracy

    Is there any update on this. Having the same problem. None of the redirect options work? Even trying to redirect to the referrer. It just redirects me to the homepage!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Theme My Login] Redirect after login’ is closed to new replies.