diff --git a/src/Application/Actions/Group/CreateGroupAction.php b/src/Application/Actions/Group/CreateGroupAction.php index df769550e5b45081ecbce3e032e9d021f7a7b349..c43bcbdba79f2d8f8ad2b3780103b61cd1bfb825 100755 --- a/src/Application/Actions/Group/CreateGroupAction.php +++ b/src/Application/Actions/Group/CreateGroupAction.php @@ -41,7 +41,9 @@ class CreateGroupAction extends GroupAction $this->logger->info("Group has been created."); - return $this->twig->render($this->response, "/group/group_view.twig", ["group" => $group, "session" => $_SESSION]); + return $this->response + ->withHeader('Location', '/groups' . $groupId) + ->withStatus(302); } }