diff options
author | silverwind <me@silverwind.io> | 2021-05-09 22:03:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 21:03:09 +0100 |
commit | 17a7797cdde192e07b5671d4bfe7f40150753656 (patch) | |
tree | ef0a3e90b1bfd4269e146ba73d65d527491f2d1b /routers | |
parent | 2e0f3156170dac30325a5fadd5ad3525b4a60e50 (diff) | |
download | gitea-17a7797cdde192e07b5671d4bfe7f40150753656.tar.gz gitea-17a7797cdde192e07b5671d4bfe7f40150753656.zip |
Fix incorrect asset URL (#15805)
Fixes another regression from https://github.com/go-gitea/gitea/pull/15219.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/routes/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go index c4d0bc32f8..77ceb83214 100644 --- a/routers/routes/web.go +++ b/routers/routes/web.go @@ -173,7 +173,7 @@ func WebRoutes() *web.Route { // this png is very likely to always be below the limit for gzip so it doesn't need to pass through gzip routes.Get("/apple-touch-icon.png", func(w http.ResponseWriter, req *http.Request) { - http.Redirect(w, req, path.Join(setting.StaticURLPrefix, "img/apple-touch-icon.png"), 301) + http.Redirect(w, req, path.Join(setting.StaticURLPrefix, "/assets/img/apple-touch-icon.png"), 301) }) gob.Register(&u2f.Challenge{}) |