remove the port from domain (SiteRequest)

This commit is contained in:
Simon Vieille 2022-01-28 14:43:03 +01:00
parent d56f9bd6d4
commit ff67538543

View file

@ -69,7 +69,9 @@ class SiteRequest
public function getDomain(): string
{
return $this->requestStack->getCurrentRequest()->headers->get('host');
$host = $this->requestStack->getCurrentRequest()->headers->get('host');
return preg_replace('/:\d+$/', '', $host);
}
public function getUri(): string