]> Lady’s Gitweb - Gitweb/commit
gitweb: make static files accessible with PATH_INFO
authorGiuseppe Bilotta <redacted>
Sat, 31 Jan 2009 01:31:50 +0000 (02:31 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commitfcb1894e5130367905abab7cc81c5605bce1f3ed1923af68665a8aec1a821c6b
treeccc76c1ee1f4bc859d68574e737d913868f4c3cc50075568b95352e93a30bd24
parentee4ea1a2f20a899e78461f6364be2b2ddfc512d069cf966fa5dcb9ffd7770f70
gitweb: make static files accessible with PATH_INFO

Gitweb links to a number of static files such as CSS stylesheets,
favicon or the git logo. When, such as with the default Makefile, the
paths to these files are relative (i.e. doesn't start with a "/"), the
files become inaccessible in any view other tha project list and summary
page if gitweb is invoked with a non-empty PATH_INFO.

Fix this by adding a <base> element pointing to the script's own URL,
which ensure that all relative paths will be resolved correctly.

Signed-off-by: Giuseppe Bilotta <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.227969 seconds and 4 git commands to generate.