Cleaner way to get the domain
This commit is contained in:
parent
e1d7ad44e0
commit
d83774ae7d
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class ViewFactory
|
||||||
$view->offsetSet('canonical', self::getCanonicalUrl($request));
|
$view->offsetSet('canonical', self::getCanonicalUrl($request));
|
||||||
$view->offsetSet('locale', $container->get('locale')->getLocale());
|
$view->offsetSet('locale', $container->get('locale')->getLocale());
|
||||||
$view->offsetSet('config', $container->get('config'));
|
$view->offsetSet('config', $container->get('config'));
|
||||||
$view->offsetSet('domain', rtrim($uri->withPath('')->withBasePath(''), '/'));
|
$view->offsetSet('domain', $uri->withBasePath('')->getBaseUrl());
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue