Redirecting user to last page visited
In order to redirect a user from a post route to the last page that they visited do I need to save the name of that page as a session variable and redirect them to it? Or is there an easier and better way? Thanks, Richard
On 9/12/20 8:07 PM, Richard Reina wrote:
In order to redirect a user from a post route to the last page that they visited do I need to save the name of that page as a session variable and redirect them to it? Or is there an easier and better way?
Thanks,
Richard
Hello Richard, you can take a look at the PageHistory plugin from Peter Mottram: https://metacpan.org/pod/Dancer2::Plugin::PageHistory Regards Racke -- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. Provisioning with Ansible.
participants (2)
-
Richard Reina -
Stefan Hornburg (Racke)