@samitouri / QOSami-HFS / commits / ba38b348

fix: favicon not working when using reverse-proxy with a prefix path #1149

Massimo Melina committed Jan 2, 2026 at 13:01 UTC ba38b34837f93d6ac1137dabedd724fb9b0284bc
1 file changed +1 -1
src/serveGuiFiles.ts
+1 -1
@@ -123,7 +123,7 @@ async function treatIndex(ctx: Koa.Context, filesUri: string, body: string) {
123 </script>
124 ${isFrontend && `
125 <title>${title.get()}</title>
126 - <link rel="shortcut icon" href="/favicon.ico?${timestamp}" />
126 + <link rel="shortcut icon" href="${ctx.state.revProxyPath}/favicon.ico?${timestamp}" />
127 ${getSection('htmlHead')}`}
128 `
129 function iconsToObj(icons: CustomizedIcons, pre='') {