1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 23:24:04 +02:00

feat(helpers): update redirect urls helpers

This commit is contained in:
Awilum
2021-09-01 08:07:11 +03:00
parent d14bac223f
commit d4d57d4b62

View File

@@ -120,7 +120,7 @@ if (! function_exists('redirect')) {
function redirect(string $routeName, array $data = [], array $queryParams = []): Response
{
$response = new Response();
$response->withHeader('Location', urlFor($routeName, $data, $queryParams));
$response = $response->withHeader('Location', urlFor($routeName, $data, $queryParams));
return $response;
}