From 227dcc3cb9099ce82f6479c3daa356d288782c8e Mon Sep 17 00:00:00 2001 From: novaeye Date: Wed, 23 Dec 2015 17:50:14 +0800 Subject: [PATCH] fix #2268 --- routers/org/setting.go | 2 ++ 1 file changed, 2 insertions(+) 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.