From f4cbe9205049ff9c0ae67607fd79a6f106a8e2f9 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 5 Mar 2024 10:57:20 +1300 Subject: [PATCH] ENH Make `CanonicalURLMiddleware` run in all environments by default (#11154) --- 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 66e2a2afe..a65825142 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 ];