{\r
$html = $this->_container->html;\r
\r
+ if (!$this->canonical) {\r
+ $this->canonical = $this->getURL();\r
+ }\r
+ if (!$this->next && isset($this->_container->pages[$this->page + 1])) {\r
+ $this->next = $this->_container->pages[$this->page + 1]->getURL();\r
+ }\r
+ if (!$this->prev && isset($this->_container->pages[$this->page - 1])) {\r
+ $this->prev = $this->_container->pages[$this->page - 1]->getURL();\r
+ }\r
+\r
$vars = ['description' => $this->description ? '<meta name="description" content="' . $this->description . '">' : '',\r
'keywords' => $this->keywords ? '<meta name="keywords" content="' . $this->keywords . '">' : '',\r
'titre' => $this->title,\r
- 'canonical' => $this->canonical ? '<link rel="canonical" href="' . $this->canonical . '">' : '',\r
+ 'canonical' => $this->canonical ? '<link rel="canonical" href="' . $this->canonical . '">' : '<link rel="canonical" href="' . $this->getURL() . '">',\r
'prev' => $this->prev ? '<meta name="prev" href="' . $this->prev . '">' : '',\r
'next' => $this->next ? '<meta name="next" href="' . $this->next . '">' : '',\r
'robots' => $this->robots ? '<meta name="robots" content="' . $this->robots . '">' : '',\r