Skip to content

Commit

Permalink
support router args if using router with name (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
phederal authored Dec 6, 2024
1 parent 8713b4d commit 7a8500a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '://')) {
Expand Down

0 comments on commit 7a8500a

Please sign in to comment.