From: Eric Wong Date: Mon, 23 Apr 2018 04:46:41 +0000 (+0000) Subject: searchview: do not blindly append "l" parameter to URL X-Git-Tag: v1.1.0-pre1~8 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=e68ad2c9d4de7fb8434f01a824564ac61aa48e80;hp=e0d110f9f9a16d4847be98ae1fa9e2b397831cd4 searchview: do not blindly append "l" parameter to URL It's ugly and all of our other parameters are omitted when values are not the default. --- diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 5d500c1b..e47dcfd0 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -337,7 +337,7 @@ sub qs_html { $qs .= "&o=$o"; } if (my $l = $self->{l}) { - $qs .= "&l=$l"; + $qs .= "&l=$l" unless $l == $LIM; } if (my $r = $self->{r}) { $qs .= "&r";