forked from ZwiiCMS-Team/ZwiiCMS
[9.1.00] Réécriture d'URL dans canonical
This commit is contained in:
parent
1d774a3fa7
commit
a4cd34a2fa
@ -2139,8 +2139,7 @@ class layout extends common {
|
|||||||
public function showMetaTitle() {
|
public function showMetaTitle() {
|
||||||
echo '<title>' . $this->core->output['metaTitle'] . '</title>';
|
echo '<title>' . $this->core->output['metaTitle'] . '</title>';
|
||||||
echo '<meta property="og:title" content="' . $this->core->output['metaTitle'] . '" />';
|
echo '<meta property="og:title" content="' . $this->core->output['metaTitle'] . '" />';
|
||||||
$canonical = ($this->getUrl(0) == "accueil") ? "" : "?".$this->getUrl(0) ;
|
echo '<link rel="canonical" href="'. helper::baseUrl(true) .'" />';
|
||||||
echo '<link rel="canonical" href="'. helper::baseUrl(false) . $canonical .'" />';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user