mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Use new toString()
This commit is contained in:
parent
18d53079dd
commit
4e31a114ef
|
|
@ -57,7 +57,7 @@ class InitializeProcessor extends ProcessorBase
|
|||
&& $config->get('system.pages.redirect_trailing_slash', false)
|
||||
&& Utils::endsWith($path, '/')) {
|
||||
|
||||
$redirect = (string) $uri->getCurrentRoute()->withRoot('');
|
||||
$redirect = (string) $uri->getCurrentRoute()->toString();
|
||||
$this->container->redirectLangSafe($redirect);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user