Bypassing login page with redirect URL
-
Hey everyone,
Hoping someone a bit more tech savvy can help me out here. I have a WooCommerce Membership site. We send regular mail outs directing users to different posts etc within the site.
For our links from the mailouts, we use the
redirect_to
paramater after the login url so the user has to log in before seeing the post. iehttps://www.mysite.com/login/?redirect_to=https%3A%2F%2Fwww.mysite.com%252Fdestination-page%252F
This works great for users who are logged out of the site and need to log in in order to view the posts. For users already logged in however, the redirect doesn’t work and just takes the user to the first URL in the string. ie
https://www.mysite.com/login/
Anyone have any ideas what might need to be adjusted here in order to get the redirect working in both logged in and logged out instances?
Thanks heaps!
- The topic ‘Bypassing login page with redirect URL’ is closed to new replies.