Skip to content

Commit 8c7c568

Browse files
authored
Merge pull request #162 from worldworm/fix-favicon
fix: favicon path prefix
2 parents 0078ba8 + 9f0fa88 commit 8c7c568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/serve.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func Register(r *mux.Router) {
2727
r.Handle("/favicon.ico", serveFile("favicon.ico", "image/x-icon"))
2828
for _, size := range []string{"16x16", "32x32", "192x192", "256x256"} {
2929
fileName := fmt.Sprintf("favicon-%s.png", size)
30-
r.Handle(fileName, serveFile(fileName, "image/png"))
30+
r.Handle("/" + fileName, serveFile(fileName, "image/png"))
3131
}
3232
}
3333

0 commit comments

Comments
 (0)