mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 20:21:32 +02:00
Merge pull request #141 from Gertt/patch-1
fix page ids not picking up folder-only pages
This commit is contained in:
@@ -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 ?: '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user