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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user