I have a view that uses [detailslink] to display more data.
If my view is at example.com/my-view/
When I click the details link it becomes example.com/my-view/entry/557
Is there a shortcode to then return to the original view (before clicking the [detailslink])?
Hi all,
the issue has been resolved, using this href="[server param="HTTP_REFERER"]"
The above is the best route because I can then use the view on multiple pages with different URLs, unlike with Victor's answer, I would only be able to use the view on 1 page due to the static link used.
Good self diagnosis. It wasn't apparent to me that is how you had it working, but we're glad you figured it out.
Please login or Register to submit your answer
Victor's suggestion is the most appropriate. If you can do a little HTML/CSS code, you can create the link and use CSS to style it like a button. If you want something built in, your theme may have some built in shortcodes to create a button or you can add a plugin like this -> https://getshortcodes.com/docs/button/