- This topic has 16 replies, 4 voices, and was last updated 9 years, 9 months ago by .
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Enable Redirection to the Last Page (where they clicked the login link)
Tagged: Custom messages, login redirect, plugins
This redirection ONLY triggers if you click on the “Login” link from the protected content message that is shown inside a protected post/page. When you you do this correctly, the login page will have the “swpm_redirect_to” query parameter in the URL like the following example:
your-site.com/login-page/?swpm_redirect_to=<url-to-redirect-to>
If that query parameter is not present in the URL then that means one of two things:
1) You didn’t click on on the login link shown INSIDE the protected post/page.
OR
2) You don’t have the “Enable Redirect to Last Page” option enabled in the settings menu of the login redirection addon.
I thought that would be the case. I said at the very start that I have the profile showing in a sidebar, as my members like to see their details (especially the expiry date). When not logged in this offers the login boxes, and if they are filled in there then the redirection doesn’t work.
And yes, clicking on the login link within the protected page does work. So I will consider this matter closed.
Thanks for your input into this.
Cheers,
JohnF