dans le CategorieControler.php j'ai ce code:
public function canonicalRedirection($canonicalURL = '')
{
if (Validate::isLoadedObject($this->category)) {
parent::canonicalRedirection($this->context->link->getCategoryLink($this->category));
}
}
public function getCanonicalURL()
{
if (!Validate::isLoadedObject($this->category)) {
return '';
}
$canonicalUrl = $this->context->link->getCategoryLink($this->category);
$parsedUrl = parse_url($canonicalUrl);
if (isset($parsedUrl['query'])) {
parse_str($parsedUrl['query'], $params);
} else {
$params = [];
}
$page = (int) Tools::getValue('page');
if ($page > 1) {
$params['page'] = $page;
} else {
unset($params['page']);
}
$canonicalUrl = http_build_url($parsedUrl, ['query' => http_build_query($params)]);
return $canonicalUrl;
}