diff --git a/core/core.php b/core/core.php index bd45f47..90add99 100644 --- a/core/core.php +++ b/core/core.php @@ -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]; + } } }