From dd11961a11ba27b6e65e4375f338b9fe1a981501 Mon Sep 17 00:00:00 2001 From: jamesread Date: Fri, 12 Apr 2024 22:07:06 +0100 Subject: [PATCH] bugfix: custom-webui prefix --- internal/httpservers/webuiServer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/httpservers/webuiServer.go b/internal/httpservers/webuiServer.go index 4a93a4d..227aa81 100644 --- a/internal/httpservers/webuiServer.go +++ b/internal/httpservers/webuiServer.go @@ -120,7 +120,7 @@ func startWebUIServer(cfg *config.Config) { mux := http.NewServeMux() mux.Handle("/", http.FileServer(http.Dir(findWebuiDir()))) - mux.Handle("/custom-webui/", http.FileServer(http.Dir(findCustomWebuiDir()))) + mux.Handle("/custom-webui/", http.StripPrefix("/custom-webui/", http.FileServer(http.Dir(findCustomWebuiDir())))) mux.HandleFunc("/theme.css", generateThemeCss) mux.HandleFunc("/webUiSettings.json", generateWebUISettings)