summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/user/profile.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index b531523e65..9007ab326f 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -6,6 +6,7 @@ package user
import (
"fmt"
+ "path"
"strings"
"github.com/gogits/gogs/models"
@@ -38,7 +39,7 @@ func Profile(ctx *middleware.Context) {
uname := ctx.Params(":username")
// Special handle for FireFox requests favicon.ico.
if uname == "favicon.ico" {
- ctx.Redirect(setting.AppSubUrl + "/img/favicon.png")
+ ctx.ServeFile(path.Join(setting.StaticRootPath, "public/img/favicon.png"))
return
} else if strings.HasSuffix(uname, ".png") {
ctx.Error(404)