diff --git a/dashboard/static.go b/dashboard/static.go index b12bcf00..a5a8cdaf 100644 --- a/dashboard/static.go +++ b/dashboard/static.go @@ -81,7 +81,7 @@ func declareStaticRoutes(router *gin.RouterGroup, baseURL string) { if forwarder != nil { fwd_request(c.Writer, c.Request, *forwarder) } else { - http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, path.Join(baseURL, "files")))) + http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, "/"+path.Join(baseURL, "files")))) } }) diff --git a/dashboard/static/index.html b/dashboard/static/index.html index 392537cc..6d0b5a6a 100644 --- a/dashboard/static/index.html +++ b/dashboard/static/index.html @@ -537,7 +537,7 @@ @@ -558,7 +558,7 @@