remove the port from domain (SiteRequest)
This commit is contained in:
parent
d56f9bd6d4
commit
ff67538543
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue