redirect_to when already logged in.
-
Hi, Jeff! Happy New Years. Hope you are well.
I wanted to be able to give some people a URL that will whether they are logged in or not. Something like:
/login/?redirect_to=/page-you-must-be-logged-in-for/
When logged out, they login and it redirects them.
When logged in, TML (I think it’s TML) redirects to /your-profile/ instead.
I couldn’t find where to change this in the TML code, but this bit of code redirects logged in users to the redirect_to value if they are already logged in. So just FYI, and not sure if you can/want to use this.
https://gist.github.com/strangerstudios/8225840
Thanks! We should chat sometime.
- The topic ‘redirect_to when already logged in.’ is closed to new replies.