diff --git a/src/Controllers/ResultController.php b/src/Controllers/ResultController.php index 44c35f0..5345d97 100644 --- a/src/Controllers/ResultController.php +++ b/src/Controllers/ResultController.php @@ -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); } diff --git a/views/index.twig b/views/index.twig index 9a4eef8..72c1fc8 100644 --- a/views/index.twig +++ b/views/index.twig @@ -4,16 +4,25 @@ {% block content %} -
Using Colossus, you can easily organize your hardware benchmark results.
- -Using Colossus, you can easily organize your hardware benchmark results.
+Tests list...
+ {% if tests | length > 0 %}