mirror of
https://github.com/getgrav/grav.git
synced 2025-12-17 21:59:42 +01:00
Merge remote-tracking branch 'origin/1.6' into 1.6
This commit is contained in:
@@ -57,7 +57,7 @@ class InitializeProcessor extends ProcessorBase
|
|||||||
&& $config->get('system.pages.redirect_trailing_slash', false)
|
&& $config->get('system.pages.redirect_trailing_slash', false)
|
||||||
&& Utils::endsWith($path, '/')) {
|
&& Utils::endsWith($path, '/')) {
|
||||||
|
|
||||||
$redirect = (string) $uri->getCurrentRoute()->withRoot('');
|
$redirect = (string) $uri->getCurrentRoute()->toString();
|
||||||
$this->container->redirectLangSafe($redirect);
|
$this->container->redirectLangSafe($redirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user