use both Referer and Custom location for redirection
-
Currently I’m using Theme My Login to redirect user roles to specific pages. Works great. However I’m hoping I an do something extra.
So User1 has the role of Contributor, so User1 logs in at a login page for mywebsite.com and TML Redirect takes all users with role of Contributor to mywebsite.com/contributors-corner using ‘custom location’ under TML Redirection.However, if I gave User1 a link like “mywebsite.com/contributors-corner/?specialthing=myvalue” , and User1 isn’t logged in, when User1 logs in, it still goes to mywebsite.com/contributors-corner and the values are erased (or subdirectories or whatever was in the link). This is functioning as normal, and I understand that if I set “Contributor” role to Referer, after logging in User1 would continue on to “website.com/contributors-corner/?myvariable=myvalue”
I want the best of both worlds. If logged out User1 comes to the standard login screen on their own, I want them to redirect to /contributors-corner/ however If I email them /contributors-corner/?myvariable=myvalue I want them to log in and arrive there with the variable and value intact (or to something similar like a sub directory in the link).
Is there an option for this, or a way to create an alternate login page for WordPress that isn’t affected by Theme My Login. I could conceivably create an alternate login page that maintains their URL info and forwards them on. I hope I explained this well. Thanks
- The topic ‘use both Referer and Custom location for redirection’ is closed to new replies.