mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 03:21:33 +01:00
Merge branch 'develop' into 1.6
This commit is contained in:
@@ -54,7 +54,7 @@ class InitializeProcessor extends ProcessorBase
|
||||
// Redirect pages with trailing slash if configured to do so.
|
||||
$path = $uri->path() ?: '/';
|
||||
if ($path !== '/' && $config->get('system.pages.redirect_trailing_slash', false) && Utils::endsWith($path, '/')) {
|
||||
$this->container->redirect(rtrim($path, '/'));
|
||||
$this->container->redirectLangSafe(rtrim($path, '/'));
|
||||
}
|
||||
|
||||
$this->container->setLocale();
|
||||
|
||||
Reference in New Issue
Block a user