diff --git a/src/Frontend/LocalizedFrontend.php b/src/Frontend/LocalizedFrontend.php index 090e928..a93dbd4 100644 --- a/src/Frontend/LocalizedFrontend.php +++ b/src/Frontend/LocalizedFrontend.php @@ -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; }