Add suburl support

This commit is contained in:
Unknwon committed 2014-09-19 20:11:34 -04:00
1 parent 6a7bd097fe
commit 7ba9257a7f
90 files changed
+287 -283

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ func Contexter() macaron.Handler {
Session: sess,
}
// Compute current URL for real-time change language.
link := setting.AppRootSubUrl + ctx.Req.RequestURI
link := setting.AppSubUrl + ctx.Req.RequestURI
i := strings.Index(link, "?")
if i > -1 {
link = link[:i]