From b2d3e64a0f518bd10fcd937e2aa9053f749a1196 Mon Sep 17 00:00:00 2001 From: ginabythebay Date: Sat, 31 Dec 2022 21:46:44 -0800 Subject: [PATCH] Fix #1635, trim slash when looking up resource files (#1637) --- app/scanningcabinet/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scanningcabinet/handler.go b/app/scanningcabinet/handler.go index 01cd19ba1..ea0b33821 100644 --- a/app/scanningcabinet/handler.go +++ b/app/scanningcabinet/handler.go @@ -643,7 +643,7 @@ func handleRobots(w http.ResponseWriter, r *http.Request) { } func (h *handler) handleUiFile(w http.ResponseWriter, r *http.Request) { - file := strings.TrimPrefix(r.URL.Path, "/ui") + file := strings.TrimPrefix(r.URL.Path, "/ui/") root := h.uiFiles