about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-04-25 00:07:40 +0000
committerEric Wong <e@80x24.org>2016-04-25 00:07:40 +0000
commite43b93b82d515f06afa4c0ba787f45c28ab1450e (patch)
tree0cc9d7914b86641262cc8d34b7e80d296d5839b1 /lib
parent9f60aea345ef60ecb63cac9cea119f1dc869a21b (diff)
downloadpublic-inbox-e43b93b82d515f06afa4c0ba787f45c28ab1450e.tar.gz
Oops, gotta test this :x
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 0e65daca..177a1a6f 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -30,7 +30,7 @@ sub msg_html {
         headers_to_html_header($hdr, $ctx) .
                 multipart_text_as_html($mime) .
                 '</pre><hr /><pre>' .
-                html_footer($hdr, 1, $ctx) .
+                html_footer($hdr, 1, $ctx, 'R/') .
                 $footer .
                 '</pre></body></html>';
 }
@@ -139,7 +139,7 @@ sub index_entry {
                 index_walk($fh, $_[0], $enc, \$part_nr);
         });
         $mime->body_set('');
-        $rv = "\n" . html_footer($hdr, 0, $ctx, $mhref);
+        $rv = "\n" . html_footer($hdr, 0, $ctx, "$path$href/R");
 
         if (defined $irt) {
                 unless (defined $parent_anchor) {
@@ -498,7 +498,7 @@ sub mailto_arg_link {
 }
 
 sub html_footer {
-        my ($hdr, $standalone, $ctx, $mhref) = @_;
+        my ($hdr, $standalone, $ctx, $rhref) = @_;
 
         my $srch = $ctx->{srch} if $ctx;
         my $upfx = '../';
@@ -526,7 +526,7 @@ sub html_footer {
                 $irt = '';
         }
 
-        $irt . qq(<a\nhref="${tpfx}R/">reply</a>) . $idx;
+        $irt . qq(<a\nhref="$rhref">reply</a>) . $idx;
 }
 
 sub linkify_ref_nosrch {