More reliable Page::home() check

This commit is contained in:
Andy Miller
2016-08-24 15:49:46 -06:00
parent 0496fc3790
commit 3e29ae0923

View File

@@ -2153,7 +2153,9 @@ class Page
*/
public function home()
{
return $this->find('/') == $this;
$home = Grav::instance()['config']->get('system.home.alias');
$is_home = ($this->route() == $home || $this->rawRoute() == $home);
return $is_home;
}
/**