Skip Navigation

[Résolu] Redirect after login

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I've added a view to a page so that when an unlogged in user attempts to click on a PDF download within that view/grid, it takes them to a login page. After they login, it takes them to an account page basically. But what I need it to do, is instead, after logging in, for it to take them right to the PDF that they clicked on initially, or back to that same page where they found the PDF on in the first place:)

Solution:

If it is a login from setup by Views shortcode [wpv-login-form], then it is possible to setup the redirect URL with shortcode attribute "redirect_url".

See details here:

https://toolset.com/forums/topic/redirect-after-login-3/#post-1153603

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-login-form

This support ticket is created Il y a 6 années. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : 

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

Dernière mise à jour par Jas Il y a 6 années.

Assisté par: Luo Yang.

Auteur
Publications
#1155988

You can try to setup the links as below:

<p><a href="<em><u>lien caché</u></em> field='download-file' output='raw'][/types]" target="_blank">[wpv-post-featured-image size="medium"]</a></p>
<h4><a href="<em><u>lien caché</u></em> field='download-file' output='raw'][/types]" target="_blank">[wpv-post-title]</a></h4>

Add target="_blank" attribute to HTML a tags, more help:
lien caché
_blank Opens the linked document in a new window or tab

#1155990

Jas

My issue is resolved now. Thank you!