add forced domain

This commit is contained in:
Simon Vieille 2021-05-18 13:27:53 +02:00
parent 8e016e3b36
commit 6a95bf4be0

View file

@ -26,6 +26,10 @@ class ForcedDomainEventSubscriber implements EventSubscriberInterface
return;
}
if (!$navigation->getForceDomain()) {
return;
}
if ($navigation->getDomain() === $this->siteRequest->getDomain()) {
return;
}