aboutsummaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
authornovaeye <fcoffee@gmail.com>2015-12-23 17:50:14 +0800
committernovaeye <fcoffee@gmail.com>2015-12-23 17:50:14 +0800
commit227dcc3cb9099ce82f6479c3daa356d288782c8e (patch)
tree4e2826be08300ba84b4736b9b1b02a8d00290dfc /routers/org
parenta49af93fafe824cdd375318d15de420b3ed61e79 (diff)
downloadgitea-227dcc3cb9099ce82f6479c3daa356d288782c8e.tar.gz
gitea-227dcc3cb9099ce82f6479c3daa356d288782c8e.zip
fix #2268
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go
index 30f8cabe3e..0b1b512d34 100644
--- a/routers/org/setting.go
+++ b/routers/org/setting.go
@@ -60,6 +60,8 @@ func SettingsPost(ctx *middleware.Context, form auth.UpdateOrgSettingForm) {
}
return
}
+ // reset ctx.org.OrgLink with new name
+ ctx.Org.OrgLink = setting.AppSubUrl + "/org/" + form.Name
log.Trace("Organization name changed: %s -> %s", org.Name, form.Name)
}
// In case it's just a case change.