Skip to content

Commit

Permalink
do not add empty route
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Aug 27, 2024
1 parent 33093e0 commit 36f291b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Routing/RouteProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ private function getEnabledNews(array $names = null): array

private function addRouteForNews(array $news): void
{
if (!$news['alias']) {
return;
}

$name = 'tl_news.'.$news['alias'];

if (isset(self::$routes[$name])) {
Expand Down

0 comments on commit 36f291b

Please sign in to comment.