From 1a4942e300c27cd98d4303fc133157ecb85d1584 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 20 Feb 2024 12:46:46 +1300 Subject: [PATCH] fix: by default CanonicalURLMiddleware should run in all environments --- src/Control/Middleware/CanonicalURLMiddleware.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Control/Middleware/CanonicalURLMiddleware.php b/src/Control/Middleware/CanonicalURLMiddleware.php index 66e2a2afe60..a6582514216 100644 --- a/src/Control/Middleware/CanonicalURLMiddleware.php +++ b/src/Control/Middleware/CanonicalURLMiddleware.php @@ -81,6 +81,8 @@ class CanonicalURLMiddleware implements HTTPMiddleware * @var array|bool */ protected $enabledEnvs = [ + CoreKernel::DEV, + CoreKernel::TEST, CoreKernel::LIVE ];