url canonical homepage
This commit is contained in:
parent
f2bb8b964c
commit
72be48405c
@ -1975,7 +1975,13 @@ class common
|
|||||||
{
|
{
|
||||||
echo '<title>' . $this->output['metaTitle'] . '</title>';
|
echo '<title>' . $this->output['metaTitle'] . '</title>';
|
||||||
echo '<meta property="og:title" content="' . $this->output['metaTitle'] . '" />';
|
echo '<meta property="og:title" content="' . $this->output['metaTitle'] . '" />';
|
||||||
echo '<link rel="canonical" href="' . helper::baseUrl(true) . $this->getUrl() . '" />';
|
if (
|
||||||
|
$this->getData(['locale', 'homePageId']) === $this->getUrl(0)
|
||||||
|
) {
|
||||||
|
echo '<link rel="canonical" href="' . helper::baseUrl(false) . '" />';
|
||||||
|
} else {
|
||||||
|
echo '<link rel="canonical" href="' . helper::baseUrl(true) . $this->getUrl() . '" />';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user