[9.1.00] Réécriture d'URL dans canonical

This commit is contained in:
fredtempez 2019-05-02 19:39:11 +02:00
parent 1d774a3fa7
commit a4cd34a2fa

View File

@ -2139,8 +2139,7 @@ class layout extends common {
public function showMetaTitle() {
echo '<title>' . $this->core->output['metaTitle'] . '</title>';
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(false) . $canonical .'" />';
echo '<link rel="canonical" href="'. helper::baseUrl(true) .'" />';
}
/**