...
Code Block |
---|
class Category implements EntityInterface { public function getUrl(\Magento\Store\Api\Data\StoreInterface $store): string { $urlRewrite = $this->urlFinder->findOneByData([ 'target_path' => trim($this->request->getPathInfo(), '/'), 'store_id' => $store->getId() ]); if ($urlRewrite) { return $store->getBaseUrl() . $urlRewrite->getRequestPath(); } return $store->getCurrentUrl(false); } } |
If there is no $urlRewrite, we go into $store->getCurrentUrl(false) and also into below plugin
vendor/creativestyle/magesuite-seo-hreflang/Plugin/Model/Store.php:61
...