Skip to content

Commit 4606838

Browse files
jnarebgitster
authored andcommitted
gitweb/README: Document $base_url
Signed-off-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 85738ba commit 4606838

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gitweb/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ not include variables usually directly set during build):
165165
Full URL and absolute URL of gitweb script;
166166
in earlier versions of gitweb you might have need to set those
167167
variables, now there should be no need to do it.
168+
* $base_url
169+
Base URL for relative URLs in pages generated by gitweb,
170+
(e.g. $logo, $favicon, @stylesheets if they are relative URLs),
171+
needed and used only for URLs with nonempty PATH_INFO via
172+
<base href="$base_url>. Usually gitweb sets its value correctly,
173+
and there is no need to set this variable, e.g. to $my_uri or "/".
168174
* $home_link
169175
Target of the home link on top of all pages (the first part of view
170176
"breadcrumbs"). By default set to absolute URI of a page ($my_uri).

0 commit comments

Comments
 (0)