• Resolved saraelba

    (@saraelba)


    I had installed the plugin an it works great!!! ????

    But I want redirect members to the previous page they visited before. For example:

    A not logged in user goes to Forum
    (Forum is a restricted content. For members only).

    I had set the plugin to REDIRECT;
    In my case redirect to https://www.mysite.com/for-members-only page

    This page it has a a title: “the content your are tying to see is restricted only for members”, a login form and a subscribe form too.
    (This page is very important. That’s way setting “Login and Back” is not a good option.)

    So:
    I want the users after login be REDIRECTED to FORUM or that restricted content the member has visited before the members-only page.

    Thanks in advance for your help!!!

    • This topic was modified 3 years, 8 months ago by saraelba.
Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @saraelba – So it won’t be possible on our end. The reason it works for the normal login forms is because those forms already include the ability to pass a URL to redirect back to after you log in. Very likely your custom login page either does not support that, or does so in a way that is different from how WordPress core does it meaning our solution won’t work without modification.

    We would not be willing to modify the plugin to work with one specific solution for that scenario as I can think of at least 10 plugins and at least as many themes that all offer custom login pages we would have to make that same modification for.

    In this case I’d ask the author of your login form if you can set it to redirect based on the redirect_to= parameter in the URL. If so, then you should also have them filter wp_login_url to replace the built in WP login page entirely.

    Doing both of those would mean our solution would just work out of the box for you.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Referral link after login’ is closed to new replies.