From 7a8500a50c329aff57a9db95b134df4092194600 Mon Sep 17 00:00:00 2001 From: Roman Andreevich <38112007+phederal@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:39:34 +0300 Subject: [PATCH] support router args if using router with name (#28) --- src/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Response.php b/src/Response.php index 0eb80a4..560a407 100755 --- a/src/Response.php +++ b/src/Response.php @@ -277,7 +277,7 @@ public function die($data, int $code = 500) public function redirect($url, int $status = 302, bool $exit = true) { if (is_array($url)) { - $url = app()->route($url[0]); + $url = app()->route($url[0], ...array_slice($url, 1)); } if (class_exists('Leaf\App') && !strpos($url, '://')) {