diff --git a/core/module/sitemap/sitemap.php b/core/module/sitemap/sitemap.php index 33ccf0eb..a90a804a 100644 --- a/core/module/sitemap/sitemap.php +++ b/core/module/sitemap/sitemap.php @@ -30,7 +30,8 @@ class sitemap extends common foreach ($this->getHierarchy(null, true, null) as $parentId => $childIds) { $items .= '
  • '; if ($this->getData(['page', $parentId, 'disable']) === false && $this->getUser('group') >= $this->getData(['page', $parentId, 'group'])) { - $items .= '' .$this->getData(['page', $parentId, 'title']) . ''; + $pageUrl = ($parentId !== $this->getData(['locale', 'homePageId'])) ? helper::baseUrl() . $parentId : helper::baseUrl(false); + $items .= '' .$this->getData(['page', $parentId, 'title']) . ''; } else { // page désactivée $items .= $this->getData(['page', $parentId, 'title']); @@ -64,7 +65,8 @@ class sitemap extends common // Sous-page $items .= '
  • '; if ($this->getData(['page', $childId, 'disable']) === false && $this->getUser('group') >= $this->getData(['page', $parentId, 'group'])) { - $items .= '' . $this->getData(['page', $childId, 'title']) . ''; + $pageUrl = ($childId !== $this->getData(['locale', 'homePageId'])) ? helper::baseUrl() . $childId : helper::baseUrl(false) ; + $items .= '' . $this->getData(['page', $childId, 'title']) . ''; } else { // page désactivée $items .= $this->getData(['page', $childId, 'title']);