index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
pkg
/
context
/
context.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2017-04-06 17:27:57 -0400
committer
Unknwon <u@gogs.io>
2017-04-06 17:27:57 -0400
commit
90b9f7e08ca2e027cc587199537aa653ddd94d91
(
patch
)
tree
0dbd625cd1eb929250befa07f18a0517ae23a5d1
/
pkg/context/context.go
parent
2c404daca612b43bd6b0b720d3e732d9550c0eab
(
diff
)
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}
Diffstat
(limited to 'pkg/context/context.go')
-rw-r--r--
pkg/context/context.go
2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/context/context.go b/pkg/context/context.go
index 4a11ce06..1649dc3d 100644
--- a/
pkg/context/context.go
+++ b/
pkg/context/context.go
@@ -185,7 +185,7 @@ func Contexter() macaron.Handler {
}
// Compute current URL for real-time change language.
- ctx.Data["Link"] = setting.AppSubUrl + strings.TrimSuffix(ctx.Req.URL.Path, "/")
+ ctx.Data["Link"] = setting.AppSubURL + strings.TrimSuffix(ctx.Req.URL.Path, "/")
ctx.Data["PageStartTime"] = time.Now()