Skip to content

Commit 223de09

Browse files
Fix redirect
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
1 parent 6ce01c1 commit 223de09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ func AddTeamPost(ctx *context.Context) {
596596
if err != nil {
597597
if models.IsErrTeamNotExist(err) {
598598
ctx.Flash.Error(ctx.Tr("form.team_not_exist"))
599-
ctx.Redirect(setting.AppSubURL + ctx.Req.URL.Path)
599+
ctx.Redirect(ctx.Repo.RepoLink + "/settings/collaboration")
600600
} else {
601601
ctx.ServerError("GetTeam", err)
602602
}

0 commit comments

Comments
 (0)