*(home): fix assets access

This commit is contained in:
Andrey Meshkov
2020-05-14 18:37:25 +03:00
parent df1f7ebc8d
commit 502fe3cfc5
2 changed files with 3 additions and 4 deletions

View File

@@ -188,7 +188,7 @@ func postInstall(handler func(http.ResponseWriter, *http.Request)) func(http.Res
if Context.firstRun &&
!strings.HasPrefix(r.URL.Path, "/install.") &&
r.URL.Path != "/favicon.png" {
!strings.HasPrefix(r.URL.Path, "/assets/") {
http.Redirect(w, r, "/install.html", http.StatusFound)
return
}