Added javascript code to add a result in the background without refreshing the page

This commit is contained in:
Gregory Ballantine 2024-06-03 13:41:17 -04:00
parent 5919226dec
commit 5a79baca7d

View File

@ -24,7 +24,7 @@ class ResultController extends Controller {
$result->save();
if (!isset($params['redirect']) || $params['redirect'])
if (!isset($params['redirect']) || $params['redirect']) {
// redirect the user back to the home page
$routeContext = RouteContext::fromRequest($request);
$routeParser = $routeContext->getRouteParser();