]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: do not blindly append "l" parameter to URL
authorEric Wong <e@80x24.org>
Mon, 23 Apr 2018 04:46:41 +0000 (04:46 +0000)
committerEric Wong <e@80x24.org>
Mon, 23 Apr 2018 05:05:25 +0000 (05:05 +0000)
It's ugly and all of our other parameters are omitted
when values are not the default.

lib/PublicInbox/SearchView.pm

index 5d500c1b2ee655c26c214e9f75e36d427ecc7b7b..e47dcfd032cafcab860b8e701245da61eb511731 100644 (file)
@@ -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";