Skip to content

Commit cdf9358

Browse files
authored
Update Routes.php
1 parent 8ab3532 commit cdf9358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function generate(RouteMap $routes, string $name, array $attributes = [])
283283
}
284284
}
285285

286-
return $path;
286+
return empty($path) ? '/' : $path;
287287
}
288288

289289
/**

0 commit comments

Comments
 (0)