Skip to content

Commit

Permalink
slash
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 3, 2020
1 parent 1c67807 commit b842c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/CompiledRouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected function newRoute(array $attributes)
$attributes['uri']
), '/');

return (new Route($attributes['methods'], $baseUri, $attributes['action']))
return (new Route($attributes['methods'], $baseUri == '' ? '/' : $baseUri, $attributes['action']))
->setFallback($attributes['fallback'])
->setDefaults($attributes['defaults'])
->setWheres($attributes['wheres'])
Expand Down

0 comments on commit b842c65

Please sign in to comment.