get '/login' => sub { # Display a login page; the original URL they requested is available as # param('requested_path'), so could be put in a hidden field in the form # debug "displaying login page"; template 'login', { path => param('requested_path') }; }; #### [sandbox:22720] core @2025-04-06 16:28:17> Failed to serialize content: hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at /usr/local/share/perl/5.34.0/Dancer2/Serializer/JSON.pm line 40. in (eval 333) l. 1