Use new toString()

This commit is contained in:
Andy Miller 2019-01-23 12:16:48 -07:00
parent 18d53079dd
commit 4e31a114ef
No known key found for this signature in database
GPG Key ID: E82B8D0EAB94EFB9

View File

@ -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);
}