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

  1. Ramon
    Posted 3 years 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!


  2. Peter
    Plugin Author

    Posted 3 years 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):


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Peter's Login Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.