Skip to content

Commit f6f7f37

Browse files
committed
Fix for Blog Plust feat Sitemap+Canonical URLs
1 parent 11a7ec6 commit f6f7f37

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Model/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function getLevel()
335335
*/
336336
public function getUrl()
337337
{
338-
return $this->_url->getUrlPath($this->getIdentifier(), $this->controllerName);
338+
return $this->_url->getUrlPath($this, $this->controllerName);
339339
}
340340

341341
/**

Model/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function checkIdentifier($identifier, $storeId)
312312
*/
313313
public function getUrl()
314314
{
315-
return $this->_url->getUrlPath($this->getIdentifier(), $this->controllerName);
315+
return $this->_url->getUrlPath($this, $this->controllerName);
316316
}
317317

318318
/**

Model/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function getCanonicalUrl(\Magento\Framework\Model\AbstractModel $object)
192192
}
193193
}
194194

195-
$url = $this->getUrl($object->getIdentifier(), $object->getControllerName());
195+
$url = $this->getUrl($object, $object->getControllerName());
196196

197197
if ($storeChanged) {
198198
$this->_url->setScope($origStore);

0 commit comments

Comments
 (0)