@@ -42,8 +42,7 @@ func accessForbidden(c *Context) {
return
}
- c.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+c.Req.RequestURI), 0, setting.AppSubUrl+"/")
- c.Redirect(setting.AppSubUrl + "/login")
+ c.Redirect(setting.AppSubUrl + "/")
func notAuthorized(c *Context) {