From 7575e5adbccc7e35b9ae1c7055a617e1dd991068 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 21 Jan 2026 11:17:25 +0100 Subject: [PATCH] Fix English homepage routing Add dedicated route for /en to display home page in English using Kirby's multilingual system. Co-Authored-By: Claude Sonnet 4.5 --- site/config/config.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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)',