Skip Navigation

[Résolu] Redirecting to a custom page

This support ticket is created Il y a 6 années et 8 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Adrian Il y a 6 années et 8 mois.

Assisté par: Christian Cox.

Auteur
Publications
#628461

I would like to redirect unauthorized users to a different page, not content template. How can I do that?

#628526

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.

#628549

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

#628584

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??

#628814

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.

#628911

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.