diff options
-rw-r--r-- | routers/org/teams.go | 2 | ||||
-rw-r--r-- | templates/org/team/sidebar.tmpl | 2 |
2 files changed, 3 insertions, 1 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") } diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index 02cb8d7d21..0edfcd0148 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -3,7 +3,7 @@ <strong>{{.Team.Name}}</strong> <div class="ui right"> {{if .Team.IsMember $.SignedUser.ID}} - <a class="ui red tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.ID}}&page=team">{{$.i18n.Tr "org.teams.leave"}}</a> + <a class="ui red tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.ID}}&page=home">{{$.i18n.Tr "org.teams.leave"}}</a> {{else if .IsOrganizationOwner}} <a class="ui blue tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?uid={{$.SignedUser.ID}}&page=team">{{$.i18n.Tr "org.teams.join"}}</a> {{end}} |