about summary refs log tree commit homepage
path: root/lib/PublicInbox/ViewVCS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-19 08:54:42 +0000
committerEric Wong <e@80x24.org>2019-01-20 04:24:54 +0000
commitf82593fc84a6773cd6fcb0633fdcca4cee92859f (patch)
tree74b696d1667cf36931b9e5c51ec0bf0f0671f242 /lib/PublicInbox/ViewVCS.pm
parent37aadb7c7913442d470c050170639b37301cd6bf (diff)
downloadpublic-inbox-f82593fc84a6773cd6fcb0633fdcca4cee92859f.tar.gz
As with our use of the trailing slash in $MESSAGE_ID/T/ and
'$MESSAGE_ID/t/' endpoints, this for 'wget -r --mirror'
compatibility as well as allowing sysadmins to quickly stand up
a static directory with "index.html" in it to reduce load.
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r--lib/PublicInbox/ViewVCS.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index 90c09078..61f4deba 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -27,7 +27,7 @@ my $enc_utf8 = find_encoding('UTF-8');
 
 sub html_page ($$$) {
         my ($ctx, $code, $strref) = @_;
-        $ctx->{-upfx} = '../'; # from "/$INBOX/$OID/s"
+        $ctx->{-upfx} = '../../'; # from "/$INBOX/$OID/s/"
         PublicInbox::WwwStream->response($ctx, $code, sub {
                 my ($nr, undef) =  @_;
                 $nr == 1 ? $$strref : undef;
@@ -82,7 +82,7 @@ sub show ($$;$) {
         }
 
         my $path = to_filename($di->{path_b} || $hints->{path_b} || 'blob');
-        my $raw_link = "(<a\nhref=_$path>raw</a>)";
+        my $raw_link = "(<a\nhref=$path>raw</a>)";
         if ($binary) {
                 $log = "<pre>$oid $type $size bytes (binary)" .
                         " $raw_link</pre>" . $log;