[dancer-users] Redirecting user to last page visited

Stefan Hornburg (Racke) racke at linuxia.de
Sun Sep 13 02:28:39 EDT 2020


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20200913/29dc276f/attachment.sig>


More information about the dancer-users mailing list