correction absence de homePageid

This commit is contained in:
deltacms 2024-03-18 18:46:07 +01:00
parent 33c8ee210b
commit 223d100f13
1 changed files with 6 additions and 1 deletions

View File

@ -369,7 +369,12 @@ class common {
$this->url = $url;
}
else {
$this->url = $this->getData(['locale', 'homePageId']);
if( null !== $this->getData(['page', $this->getData(['locale', 'homePageId']) ]) ){
$this->url = $this->getData(['locale', 'homePageId']);
} else {
$pages = array_keys($this->getData(['page']));
$this->url = $pages[0];
}
}
}