diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index b77859714..db4e13dd1 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -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; } /**