diff --git a/site/config/config.php b/site/config/config.php index 3c9969a..3da6162 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -25,6 +25,18 @@ return [ ); } ], + // English homepage + [ + 'pattern' => 'en', + 'action' => function() { + $home = page('home'); + if ($home) { + site()->visit($home, 'en'); + return $home; + } + return null; + } + ], // French products (default) [ 'pattern' => '(:any)',