From e68ad2c9d4de7fb8434f01a824564ac61aa48e80 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 23 Apr 2018 04:46:41 +0000 Subject: 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. --- lib/PublicInbox/SearchView.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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"; -- cgit v1.2.3-24-ge0c7