mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
UI compatibility
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user