diff options
author | Unknwon <u@gogs.io> | 2015-11-24 19:28:24 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-24 19:28:24 -0500 |
commit | 968edb3e4450a82fb4756603057caca55e6aea5b (patch) | |
tree | ee959e933c820cf1b405049966998211e7d03bb3 /routers/org/setting.go | |
parent | 3ca544912fe84f5a3202855037a110af40809d43 (diff) | |
download | gitea-968edb3e4450a82fb4756603057caca55e6aea5b.tar.gz gitea-968edb3e4450a82fb4756603057caca55e6aea5b.zip |
more link fix
Diffstat (limited to 'routers/org/setting.go')
-rw-r--r-- | routers/org/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go index bd9ab13be9..d82891747a 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -76,7 +76,7 @@ func SettingsPost(ctx *middleware.Context, form auth.UpdateOrgSettingForm) { } log.Trace("Organization setting updated: %s", org.Name) ctx.Flash.Success(ctx.Tr("org.settings.update_setting_success")) - ctx.Redirect(org.HomeLink() + "/settings") + ctx.Redirect(ctx.Org.OrgLink + "/settings") } func SettingsAvatar(ctx *middleware.Context, form auth.UploadAvatarForm) { @@ -108,7 +108,7 @@ func SettingsDelete(ctx *middleware.Context) { if err := models.DeleteOrganization(org); err != nil { if models.IsErrUserOwnRepos(err) { ctx.Flash.Error(ctx.Tr("form.org_still_own_repo")) - ctx.Redirect(org.HomeLink() + "/settings/delete") + ctx.Redirect(ctx.Org.OrgLink + "/settings/delete") } else { ctx.Handle(500, "DeleteOrganization", err) } |