From: Eric Wong <e@80x24.org>
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/?a=commitdiff_plain;h=e68ad2c9d4de7fb8434f01a824564ac61aa48e80;p=public-inbox.git

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 .= "&amp;o=$o";
 	}
 	if (my $l = $self->{l}) {
-		$qs .= "&amp;l=$l";
+		$qs .= "&amp;l=$l" unless $l == $LIM;
 	}
 	if (my $r = $self->{r}) {
 		$qs .= "&amp;r";