{"thread":{"id":"55573","subject":"[gitweb] Problem with html base tag","startedAt":"2021-04-27T20:50:35Z","lastAt":"2021-04-27T20:50:35Z","messageCount":1,"participants":["dabicho"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"423130","messageId":"CAO8+z-buoW2yMJS4JNq_68yForgZm+D+hY_9qNkk-ii6Uwkc0Q@mail.gmail.com","threadId":"55573","inReplyTo":null,"subject":"[gitweb] Problem with html base tag","fromName":"dabicho","fromEmail":"tsukebumi@gmail.com","sentAt":"2021-04-27T20:50:20Z","receivedAt":"2021-04-27T20:50:35Z","isPatch":false,"sender":{"key":"tsukebumi@gmail.com","avatar":null},"body":"For some reason browsers were not loading static resources (js, css,\nfavicon) until I appended a slash to the base ref in gitweb.cgi.\n\nNot sure if it is a bug or something changed on my side after a system\nupgrade, or some change in some dependency.\n\nI attached the change.\n\n\n--- gw/gitweb.cgi\t2021-04-27 16:06:23.054063915 -0500\n+++ gitweb/gitweb.cgi\t2021-04-27 15:59:02.060725146 -0500\n@@ -4215,7 +4215,7 @@\n \t# the stylesheet, favicon etc urls won't work correctly with path_info\n \t# unless we set the appropriate base URL\n \tif ($ENV{'PATH_INFO'}) {\n-\t\tprint \"<base href=\\\"\".esc_url($base_url).\"\\\" />\\n\";\n+\t\tprint \"<base href=\\\"\".esc_url($base_url).\"/\\\" />\\n\";\n \t}\n \tprint_header_links($status);\n \n"}]}