]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: make static files accessible with PATH_INFO
[Gitweb] / gitweb.perl
index 409346b57881981f58be4be67c2a931ec6bfdbb976aa4e1897b9818ad64fad23..a0b1681acaf23200cf0835ca08c29be0c7eab7cc66e01671a56281e726cba017 100755 (executable)
@@ -2902,6 +2902,11 @@ sub git_header_html {
 <meta name="robots" content="index, nofollow"/>
 <title>$title</title>
 EOF
 <meta name="robots" content="index, nofollow"/>
 <title>$title</title>
 EOF
+# the stylesheet, favicon etc urls won't work correctly with path_info unless we
+# set the appropriate base URL
+       if ($ENV{'PATH_INFO'}) {
+               print '<base href="'.esc_url($my_url).'" />\n';
+       }
 # print out each stylesheet that exist
        if (defined $stylesheet) {
 #provides backwards capability for those people who define style sheet in a config file
 # print out each stylesheet that exist
        if (defined $stylesheet) {
 #provides backwards capability for those people who define style sheet in a config file
This page took 0.176206 seconds and 4 git commands to generate.