|
|
|
|
|
|
|
|
if ($this->urlResolver->isServerLocalhost()) { |
|
|
if ($this->urlResolver->isServerLocalhost()) { |
|
|
return $this->router->generate('frontend_home', ['section' => $section->getSlug()], UrlGeneratorInterface::ABSOLUTE_URL); |
|
|
return $this->router->generate('frontend_home', ['section' => $section->getSlug()], UrlGeneratorInterface::ABSOLUTE_URL); |
|
|
} else { |
|
|
} else { |
|
|
return $section->getMerchant()->getSettingValue(MerchantSettingDefinition::SETTING_URL); |
|
|
|
|
|
|
|
|
return $this->settingSolver->getSettingValue($section->getMerchant(), MerchantSettingDefinition::SETTING_URL); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|