]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: fix link to view replies from $MESSAGE_ID/f/ links
authorEric Wong <e@80x24.org>
Wed, 13 Apr 2016 02:42:32 +0000 (02:42 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Apr 2016 02:43:21 +0000 (02:43 +0000)
Oops, $MESSAGE_ID/f/R/ screws up rather badly.

lib/PublicInbox/View.pm

index ebe82b49fdddc1ca8551e3706e1c28a92a6504ad..2f718b709051123f0df9034a9713871b88c4976a 100644 (file)
@@ -581,8 +581,7 @@ sub html_footer {
                $irt = '';
        }
 
-       $mhref = './' unless defined $mhref;
-       $irt . qq(<a\nhref="${mhref}R/">reply</a>) . $idx;
+       $irt . qq(<a\nhref="${tpfx}R/">reply</a>) . $idx;
 }
 
 sub linkify_ref_nosrch {