Descriptionstrong text
Hello,
I’ve build an admin panel with route prefix :
$routes->prefix('administration', function (RouteBuilder $routes) {
$routes->connect('/', ['controller' => 'Pages', 'action' => 'dashboard']);
$routes->connect('/dashboard', ['controller' => 'Pages', 'action' => 'dashboard']);
$routes->fallbacks(DashedRoute::class);
});
The problem is that when i try to access to mywebsite.com/administration
CakePhp redirect me to mywebsite.com/webroot/administration
But, when I try to access to mywebsite.com/administration/
(With the “/” at the end) it’s work fine.
Regards
Loic
CakePHP Version
4.4.6
PHP Version
7.4