diff options
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/context.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index dc3b5cad16..6095b4c042 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -180,12 +180,7 @@ func Contexter() macaron.Handler { Session: sess, } // Compute current URL for real-time change language. - link := setting.AppSubUrl + ctx.Req.RequestURI - i := strings.Index(link, "?") - if i > -1 { - link = link[:i] - } - ctx.Data["Link"] = link + ctx.Data["Link"] = setting.AppSubUrl + ctx.Req.URL.Path ctx.Data["PageStartTime"] = time.Now() |