scopeConfig = $scopeConfig; } /** * @inheritdoc */ public function locateUrl($urlKey): ?string { if ($urlKey === '/') { $homePageUrl = $this->scopeConfig->getValue( Page::XML_PATH_HOME_PAGE, ScopeInterface::SCOPE_STORE ); return $homePageUrl; } return null; } }