qa: Update the reverse proxy

This commit is contained in:
nemunaire 2025-01-13 18:28:08 +01:00
parent 4473166ee7
commit 32632322d4

View File

@ -55,7 +55,7 @@ func serveOrReverse(forced_url string, baseURL string) func(c *gin.Context) {
if u, err := url.Parse(DevProxy); err != nil {
http.Error(c.Writer, err.Error(), http.StatusInternalServerError)
} else {
if forced_url != "" {
if forced_url != "" && forced_url != "/" {
u.Path = path.Join(u.Path, forced_url)
} else {
u.Path = path.Join(u.Path, strings.TrimPrefix(c.Request.URL.Path, baseURL))