From b40496533bb67ac988cd89a67e70610fc895419f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 9 Mar 2017 19:18:49 +0800 Subject: fix leave team 404 (#1154) --- routers/org/teams.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/org') 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") } -- cgit v1.2.3