summaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-03-09 19:18:49 +0800
committerGitHub <noreply@github.com>2017-03-09 19:18:49 +0800
commitb40496533bb67ac988cd89a67e70610fc895419f (patch)
tree00454cf974b3f0fe4185c7fb0468b3a3c0d73fd2 /routers/org
parentd2b288130651beb9bed486a0c6bca658de0d23e6 (diff)
downloadgitea-b40496533bb67ac988cd89a67e70610fc895419f.tar.gz
gitea-b40496533bb67ac988cd89a67e70610fc895419f.zip
fix leave team 404 (#1154)
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/teams.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go
index aed5c5bd76..cbf7f19a80 100644
--- a/routers/org/teams.go
+++ b/routers/org/teams.go
@@ -108,6 +108,8 @@ func TeamsAction(ctx *context.Context) {
switch page {
case "team":
ctx.Redirect(ctx.Org.OrgLink + "/teams/" + ctx.Org.Team.LowerName)
+ case "home":
+ ctx.Redirect(ctx.Org.Organization.HomeLink())
default:
ctx.Redirect(ctx.Org.OrgLink + "/teams")
}