]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: link users to permalink instead of thread
authorEric Wong <e@80x24.org>
Sat, 5 Sep 2015 09:04:53 +0000 (09:04 +0000)
committerEric Wong <e@80x24.org>
Sat, 5 Sep 2015 09:05:23 +0000 (09:05 +0000)
The permalink should load faster if the user had a good query
and users can easily find the rest of the message in the thread.

lib/PublicInbox/SearchView.pm

index 96b691df0e8f9149a99dab0a1a38530f6a7ecb70..13f4de2a83e595019bba21b75270faea38357f1e 100644 (file)
@@ -106,7 +106,7 @@ sub dump_mset {
                $f = PublicInbox::Hval->new_oneline($f)->as_html;
                my $d = strftime('%Y-%m-%d %H:%M', gmtime($smsg->ts));
                my $mid = PublicInbox::Hval->new_msgid($smsg->mid)->as_href;
-               $$res .= qq{$rank. <b><a\nhref="$mid/t/#u">}.
+               $$res .= qq{$rank. <b><a\nhref="$mid/">}.
                        $s->as_html . "</a></b>\n";
                $$res .= "$pfx  - by $f @ $d UTC [$pct%]\n\n";
        }