From 21964f84ba8d0161596c926a5492c1ffbed621f0 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 20 Oct 2020 23:49:23 +0200 Subject: [PATCH] Fix middleware order So the base path is changed before other middlewares use it --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 105e294..c22e010 100644 --- a/index.php +++ b/index.php @@ -43,9 +43,9 @@ try { // Middlewares. $app->add(new LocaleMiddleware($container)); - $app->add(new RouterPathMiddleware($container)); $app->add(new CspMiddleware($container)); $app->add(new LinkHeaderMiddleware($container)); + $app->add(new RouterPathMiddleware($container)); // Controllers. $frontController = new FrontController($container);