WordPress.org

Ready to get started?Download WordPress

Forums

Peter's Login Redirect
enabling "?redirect_to" (2 posts)

  1. Ramon
    Member
    Posted 1 year ago #

    Hi Peter,

    Thanks for the great plugin!

    Is it possible to change the login redirect page only if there is a "?redirect_to" variable in the url?

    I tried it by changing the following option in the admin to yes:
    Allow a POST or GET "redirect_to" variable to take redirect precedence

    This works for the "?redirect_to" case but in other cases the user is redirected to the home page and the login-url-setting in your plugins is ignored.

    What could be the case?
    (Im using the buddypress plugin)

    Kind regards!
    Ramon

    http://wordpress.org/extend/plugins/peters-login-redirect/

  2. Peter
    Member
    Plugin Author

    Posted 1 year ago #

    BuddyPress might have its own login redirect function, similar to how it handles post-registration redirect. You probably have to implement a solution similar to this one, but for the login hook (which I haven't looked into):

    http://wordpress.org/support/topic/plugin-peters-login-redirect-post-registration-redirect-not-working?replies=3#post-3203080

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.