From f3e6cb7b0edb017def957583c2b9bdf68ced0c57 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 27 Jun 2022 09:53:40 +1000 Subject: [PATCH] Fix proxy prefix replacement (#2694) --- internal/api/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/server.go b/internal/api/server.go index a8e2f25dc..c89e20d48 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -227,7 +227,7 @@ func Start() error { prefix := getProxyPrefix(r.Header) if prefix != "" { - r.URL.Path = strings.Replace(r.URL.Path, prefix, "", 1) + r.URL.Path = strings.TrimPrefix(r.URL.Path, prefix) } r.URL.Path = uiRootDir + r.URL.Path