]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: link to internal help text
authorEric Wong <e@80x24.org>
Thu, 18 Aug 2016 09:25:21 +0000 (09:25 +0000)
committerEric Wong <e@80x24.org>
Thu, 18 Aug 2016 09:32:01 +0000 (09:32 +0000)
The internal help text links to the Xapian query parser
documentation anyways, but also provides information
on which prefixes exist.

lib/PublicInbox/SearchView.pm

index 3623a78b4406e1d90bad1d4b46c536c60c85b0f5..4f0811a8c6e9776b9036cfc6fec9774c30aa7a09 100644 (file)
@@ -85,12 +85,11 @@ sub mset_summary {
 
 sub err_txt {
        my ($ctx, $err) = @_;
 
 sub err_txt {
        my ($ctx, $err) = @_;
-       my $u = '//xapian.org/docs/queryparser.html';
-       $u = PublicInbox::Hval::prurl($ctx->{env}, $u);
+       my $u = $ctx->{-inbox}->base_url($ctx->{env}) . '_/text/help/';
        $err =~ s/^\s*Exception:\s*//; # bad word to show users :P
        $err = ascii_html($err);
        "\nBad query: <b>$err</b>\n" .
        $err =~ s/^\s*Exception:\s*//; # bad word to show users :P
        $err = ascii_html($err);
        "\nBad query: <b>$err</b>\n" .
-               qq{See <a\nhref="$u">$u</a> for Xapian query syntax};
+               qq{See <a\nhref="$u">$u</a> for help on using search};
 }
 
 sub search_nav_top {
 }
 
 sub search_nav_top {