From 8678e0dd688e52919aa6f5d03c6466d3e06a7957 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 15 Feb 2015 18:27:02 +0200 Subject: [PATCH] Remove trailing & from prev/next page links in log --- lib/Plack/App/Gruntmaster/HTML.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index bdd20c2..cd65088 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -249,7 +249,7 @@ sub process_log { next unless $elem; delete $args{args}{page}; my $str = join '&', map { $_ . '=' . $args{args}{$_} } keys %{$args{args}}; - $elem->find('a')->edit_href(sub{s/$/&$str/}); + $elem->find('a')->edit_href(sub{s/$/&$str/}) if $str; } $tree->fclass('current')->replace_content("Page $args{current_page} of $args{last_page}"); } -- 2.39.2