Skip to content

Commit

Permalink
Fixed empty home url
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Oct 10, 2024
1 parent d1e2455 commit 23bf4be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MultilingualRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ protected function finalizeRoute(Route $route, string $key, string $locale, arra
$route->middleware($middleware);
}

if ($route->uri === '') {
$route->setUri('/');
}

data_set($route, 'action.as', $this->generateNameForLocaleFromOptions(
$locale,
$key,
Expand Down

0 comments on commit 23bf4be

Please sign in to comment.