From cc8b014297b1f285191886b522c84df60813b811 Mon Sep 17 00:00:00 2001 From: wassim Date: Thu, 19 Mar 2020 16:15:55 +0100 Subject: [PATCH] [FIX] disabling canonical redirect causing problems on wp-core router. --- app/Bootstrap.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Bootstrap.php b/app/Bootstrap.php index c065ffc..224457d 100644 --- a/app/Bootstrap.php +++ b/app/Bootstrap.php @@ -16,6 +16,9 @@ class Bootstrap */ public function __construct() { + // Disabling canonical redirect + remove_filter('template_redirect', 'redirect_canonical'); + // Hide admin bar add_filter('show_admin_bar', '__return_false');