From 121ed5ab52db3fceaf2d99c047a653cee8349fbf Mon Sep 17 00:00:00 2001 From: swag Date: Fri, 8 Apr 2022 13:10:52 -0400 Subject: [PATCH] Small style tweaks --- guestbook-ng.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/guestbook-ng.pl b/guestbook-ng.pl index 80def52..2dc58ae 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -52,15 +52,14 @@ under sub ($c) { $c->stash( post_count => format_number($c->message->get_post_count), + this_url => $c->req->url->to_abs(), visitor_count => format_number($c->counter->get_visitor_count) ); 1; }; -get '/' => sub ($c) { - $c->redirect_to('view'); -}; +get '/' => sub ($c) { $c->redirect_to('view') }; any [qw{GET POST}], '/sign' => sub ($c) { my $v = $c->validation();