Skip to content
Snippets Groups Projects
Commit 37aea2ca authored by Moreau Elise's avatar Moreau Elise
Browse files

redirection instead render

parent c8897dd6
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,9 @@ class CreateGroupAction extends GroupAction ...@@ -41,7 +41,9 @@ class CreateGroupAction extends GroupAction
$this->logger->info("Group has been created."); $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);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment