Skip to content

Commit e716082

Browse files
authored
Merge pull request #196 from ucdavis/srk/minor-issues-2
redirect to newly created team index
2 parents bb7bc24 + f92ac13 commit e716082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sloth.Web/Controllers/TeamsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public async Task<IActionResult> Create(CreateTeamViewModel model)
8686
DbContext.Teams.Add(team);
8787
await DbContext.SaveChangesAsync();
8888

89-
return RedirectToAction("Details", new { id = team.Id });
89+
return RedirectToAction("TeamIndex", "Home", new { team = team.Slug });
9090
}
9191

9292
[Authorize(Policy = PolicyCodes.TeamAdmin)]

0 commit comments

Comments
 (0)