diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 14281fb2c..ceec85e2e 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1136,7 +1136,7 @@ class Page // Path to the page. $this->path = dirname(dirname($var)); } - return $this->name ? $this->path . '/' . $this->folder . '/' . $this->name : null; + return $this->path . '/' . $this->folder . '/' . ($this->name ?: ''); } /**