aboutsummaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-13 16:43:43 -0500
committerUnknwon <u@gogs.io>2015-11-13 16:43:43 -0500
commit1559bd58e7dee6927d31e1aaf1b6ebfc0ffd59dc (patch)
tree1051e333cd223539788306aa169899b8c332d69a /modules/middleware
parent6a664e88c77f1ddd9c5bff4898e21a8271a5da9a (diff)
downloadgitea-1559bd58e7dee6927d31e1aaf1b6ebfc0ffd59dc.tar.gz
gitea-1559bd58e7dee6927d31e1aaf1b6ebfc0ffd59dc.zip
save custom avatar as PNG
Diffstat (limited to 'modules/middleware')
-rw-r--r--modules/middleware/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index dffebe6f2b..3910a20521 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -205,7 +205,7 @@ func Contexter() macaron.Handler {
Session: sess,
}
// Compute current URL for real-time change language.
- ctx.Data["Link"] = setting.AppSubUrl + ctx.Req.URL.Path
+ ctx.Data["Link"] = setting.AppSubUrl + strings.TrimSuffix(ctx.Req.URL.Path, "/")
ctx.Data["PageStartTime"] = time.Now()