Skip to content

Commit

Permalink
Merge pull request #185 from doenietzomoeilijk/patch-1
Browse files Browse the repository at this point in the history
Fix notices about missing indices
  • Loading branch information
bobdenotter committed Oct 25, 2018
2 parents 7d3feed + d47f14c commit 08dcf09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Frontend/LocalizedFrontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ protected function getConfigurationRoutes()
}

foreach ($routes as $name => &$route) {
if ($name !== 'preview' && $route['requirements']['_locale'] != 'none') {
if (
$name !== 'preview'
&& (!isset($route['requirements']['_locale']) || $route['requirements']['_locale'] != 'none')
) {
$route['path'] = '/{_locale}' . $route['path'];
$route['requirements']['_locale'] = $requirements;
}
Expand Down

0 comments on commit 08dcf09

Please sign in to comment.