I would like to redirect unauthorized users to a different page, not content template. How can I do that?
Hi, Access does not offer an option to explicitly redirect unauthorized users to a custom Page, but you can add a custom redirect code into a redirect Content Template to achieve something similar. Noman provided an example here: https://toolset.com/forums/topic/redirect-user-to-login-page-with-toolset-access/
Let me know if this will not work for your needs.
Hi Christian,
I see. I found the same solution, but it's more of a workaround than a solution.
It would make sense to be able to redirect to a custom page. This way I don't have to go through all that trouble.
The fact that we can't do that seems more like an omission rather than "that's how it's supposed to be".
Would you please request this with the developers for a future inclusion. I am sure that a lot of other users would be very thankful to have this option in there.
Thank you
Adrian
Update:
That solution does not work. You can't redirect a page via a shortcode. There was another link in there but I don't understand why the hell it would be hidden if it's a support forum??
You should be able to add the meta tag directly to the Content Template. No extra custom shortcode is required. Add this:
<meta http-equiv="refresh" content="0; url=<em><u>lien caché</u></em>" />
We recently added some functionality that is intended to keep project links private in the forum. Links in tickets are obscured for everyone except the author and supporters. In new tickets, supporters can specify which links should be obscured and which should be visible, but older tickets that were created before the new functionality was added may have obscured links. I will change it in the older ticket now, sorry for the inconvenience.
Hi Christian,
Thank you for the code and for the explanation.
I will keep this in mind and hopefully it can help resolve other users.
I actually wrote a function in PHP that would redirect all logged out users to the login page, with the exception if they are looking at the login or sign up page.
It seemed like a more direct approach than having to create a dummy content template, which would take over a content type, just so I can redirect them to another page.
I still think that there should be an option to redirect unauthorized users to a specified page.