From 6ebf54d5957f7c45948e7eedefcf7dd26e2c7c33 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 16 Mar 2020 16:31:20 +0000 Subject: [PATCH] wait #3489 @2 --- inc/ws/Util/html5/master/class.ws.html5.seo.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.seo.php b/inc/ws/Util/html5/master/class.ws.html5.seo.php index 1963b08f9..de9a7caab 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.seo.php +++ b/inc/ws/Util/html5/master/class.ws.html5.seo.php @@ -170,10 +170,20 @@ class wsHTML5SeoPage { $html = $this->_container->html; + if (!$this->canonical) { + $this->canonical = $this->getURL(); + } + if (!$this->next && isset($this->_container->pages[$this->page + 1])) { + $this->next = $this->_container->pages[$this->page + 1]->getURL(); + } + if (!$this->prev && isset($this->_container->pages[$this->page - 1])) { + $this->prev = $this->_container->pages[$this->page - 1]->getURL(); + } + $vars = ['description' => $this->description ? '' : '', 'keywords' => $this->keywords ? '' : '', 'titre' => $this->title, - 'canonical' => $this->canonical ? '' : '', + 'canonical' => $this->canonical ? '' : '', 'prev' => $this->prev ? '' : '', 'next' => $this->next ? '' : '', 'robots' => $this->robots ? '' : '', -- 2.39.5