Add suburl support

This commit is contained in:
Unknwon
2014-09-19 20:11:34 -04:00
parent 6a7bd097fe
commit 7ba9257a7f
90 changed files with 287 additions and 283 deletions

View File

@ -33,7 +33,7 @@ func Home(ctx *middleware.Context) {
// Check auto-login.
uname := ctx.GetCookie(setting.CookieUserName)
if len(uname) != 0 {
ctx.Redirect(setting.AppRootSubUrl + "/user/login")
ctx.Redirect(setting.AppSubUrl + "/user/login")
return
}