summaryrefslogtreecommitdiffstats
path: root/routers/admin/users.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-19 20:11:34 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-19 20:11:34 -0400
commit7ba9257a7ff659417501baf7358216555cebcd86 (patch)
treeffc842cec4165d1069220ae16e08a0b824952f4b /routers/admin/users.go
parent6a7bd097fe2b3e894830fc3fdb60dde5594b61d6 (diff)
downloadgitea-7ba9257a7ff659417501baf7358216555cebcd86.tar.gz
gitea-7ba9257a7ff659417501baf7358216555cebcd86.zip
Add suburl support
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r--routers/admin/users.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index 5cdb0f5ce9..fc3b0cbce0 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -121,7 +121,7 @@ func NewUserPost(ctx *middleware.Context, form auth.RegisterForm) {
return
}
log.Trace("Account created by admin(%s): %s", ctx.User.Name, u.Name)
- ctx.Redirect(setting.AppRootSubUrl + "/admin/users")
+ ctx.Redirect(setting.AppSubUrl + "/admin/users")
}
func EditUser(ctx *middleware.Context) {
@@ -198,7 +198,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
ctx.Data["User"] = u
ctx.Flash.Success(ctx.Tr("admin.users.update_profile_success"))
- ctx.Redirect(setting.AppRootSubUrl + "/admin/users/" + ctx.Params(":userid"))
+ ctx.Redirect(setting.AppSubUrl + "/admin/users/" + ctx.Params(":userid"))
}
func DeleteUser(ctx *middleware.Context) {
@@ -218,12 +218,12 @@ func DeleteUser(ctx *middleware.Context) {
switch err {
case models.ErrUserOwnRepos:
ctx.Flash.Error(ctx.Tr("admin.users.still_own_repo"))
- ctx.Redirect(setting.AppRootSubUrl + "/admin/users/" + ctx.Params(":userid"))
+ ctx.Redirect(setting.AppSubUrl + "/admin/users/" + ctx.Params(":userid"))
default:
ctx.Handle(500, "DeleteUser", err)
}
return
}
log.Trace("Account deleted by admin(%s): %s", ctx.User.Name, u.Name)
- ctx.Redirect(setting.AppRootSubUrl + "/admin/users")
+ ctx.Redirect(setting.AppSubUrl + "/admin/users")
}