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 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.
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)