• Resolved skumar1st

    (@skumar1st)


    Hi,

    This is good membership site and got after research. Please guide how to redirect on previous landing page?

    Suppose visitor visit on abc.com/1st-paid-content page through search and this paid is paid protected. After login, visitor should redirect on previous page i.e. abc.com/1st-paid-content.

    Hope my requirement clear and any suggestion.

    Thanks..

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    You can use the theme my login plugin.
    It has options under Redirect to redirect the page after log in to referrer(previous page).

    Plugin Author Andrew Lima

    (@andrewza)

    Hi there,

    Thank you for using Paid Memberships Pro.

    You may follow this guide to redirect users back to referrer on login – https://www.paidmembershipspro.com/redirect-members-to-referrer-on-login/

    I hope this helps.

    Thread Starter skumar1st

    (@skumar1st)

    Thanks Andrew for quick reply and I know about this wonderful option in your plugin but how will redirect to current page after login.
    Log In
    Means what code to insert here, so user can redirect after login on same page.

    Thanks for advance.

    Plugin Author Andrew Lima

    (@andrewza)

    The referrer attribute should redirect user’s back to the previous page they were viewing before logging in. “This will redirect your member to the last piece of protected content they tried to view.”

    I hope this helps.

    • This reply was modified 6 years, 1 month ago by Andrew Lima.
    Thread Starter skumar1st

    (@skumar1st)

    Unable to find referrer attributes on search.

    Could you please confirm attribute for this?

    Thanks in advance.

    Plugin Author Andrew Lima

    (@andrewza)

    You may set the URL to for login to this /wp-login.php?redirect_to=!!referrer!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Member Login redirect on on previous page’ is closed to new replies.