fix: custom icons not working when using reverse-proxy with a prefix path
Massimo Melina committed
Jan 2, 2026 at 13:20 UTC
8173ebd8d448015e592bbc952f536f950c44177f
1 file changed
+1
-1
src/serveGuiFiles.ts
+1
-1
@@ -127,7 +127,7 @@ async function treatIndex(ctx: Koa.Context, filesUri: string, body: string) {
127
${getSection('htmlHead')}`}
128
`
129
function iconsToObj(icons: CustomizedIcons, pre='') {
130
- return icons && objSameKeys(icons, (v, k) => ICONS_URI + pre + k)
130
+ return icons && objSameKeys(icons, (v, k) => ctx.state.revProxyPath + ICONS_URI + pre + k)
131
}
132
133
if (isBody && isOpen)