Changed where the result.add route redirects to; added some more links around the site for easier navigation

This commit is contained in:
2022-11-25 19:46:31 -05:00
parent ca62be49b6
commit 005b31dbd7
4 changed files with 24 additions and 12 deletions

View File

@ -47,7 +47,9 @@ class ResultController extends Controller {
$routeContext = RouteContext::fromRequest($request);
$routeParser = $routeContext->getRouteParser();
return $response
->withHeader('Location', $routeParser->urlFor('result.list'))
->withHeader('Location', $routeParser->urlFor('test.view', [
'test_id' => $result->test_id
]))
->withStatus(302);
}