- This topic has 4 replies, 2 voices, and was last updated 8 years, 5 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › WP eMember – Is there a way to override redirect after login?
I want the same thing that this user was asking for:
https://support.tipsandtricks-hq.com/forums/topic/override-default-redirect-after-login
Basically, I have a subscription page that I want people to be redirected to when they login except when they are on a certain free content page that is available to all members (free and premium).
The page is a free video page. When a guest user visits the page they have a choice to register or login. If they register, they get sent to the login page which has a button to the free video page. (This is clunky, but a workaround). Subscribers, upon logging in will be sent to their subscriber dashboard which I don’t want to clutter up with a link to the free video page, so they will have to click to go to the home page then click on the link to the free video.
Ideally, I’d like a shortcode like [wp_eStore_login_no-redirect] or maybe [wp_eStore_login redirect-url=”https://mydomain.com/freevideo”%5D.
I guess a similar shortcode for the registration form would be handy too.
Thanks
If you append the “no-redirect” parameter in the URL of a page then the member won’t get auto redirected after they log in from that page.
Are you using section protection shortcode on this page?
Yes. I am using section protection to show different things based on whether someone is logged in or not.
Thank you for the reply. I found “example.com/loginpage/?noredirect=1” from https://www.tipsandtricks-hq.com/wordpress-membership/wordpress-emember-change-log-612
Unfortunately, it doesn’t seem to work on my site.
[https://safetyambassadorprogram.com/view-the-free-sap-video-of-the-month/?noredirect=1]
username: subtest
password: subtest
There was a mistake in there. The parameter should be the following:
no-redirect
So the correct example is:
example.com/loginpage/?no-redirect=1
Let me know if that works correctly after you make the change.
That works. Thank you!