git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [gitweb] Problem with html base tag
@ 2021-04-27 20:50 dabicho
  0 siblings, 0 replies; only message in thread
From: dabicho @ 2021-04-27 20:50 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

For some reason browsers were not loading static resources (js, css,
favicon) until I appended a slash to the base ref in gitweb.cgi.

Not sure if it is a bug or something changed on my side after a system
upgrade, or some change in some dependency.

I attached the change.

[-- Attachment #2: gitweb.cgi.diff --]
[-- Type: text/x-patch, Size: 425 bytes --]

--- gw/gitweb.cgi	2021-04-27 16:06:23.054063915 -0500
+++ gitweb/gitweb.cgi	2021-04-27 15:59:02.060725146 -0500
@@ -4215,7 +4215,7 @@
 	# 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($base_url)."\" />\n";
+		print "<base href=\"".esc_url($base_url)."/\" />\n";
 	}
 	print_header_links($status);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-27 20:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 20:50 [gitweb] Problem with html base tag dabicho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).