Fixed parent field not working with regular pages

This commit is contained in:
Andy Miller
2020-03-06 11:15:04 -07:00
parent 2e7c8881cb
commit 5c130ccca0
2 changed files with 7 additions and 1 deletions

View File

@@ -2310,7 +2310,7 @@ class AdminController extends AdminBaseController
if ($is_page) {
/** @var PageInterface $page */
$page = $pages->dispatch($route);
$page = $pages->get(GRAV_ROOT . $route);
$path = $page ? $page->path() : null;
} else {
// Try a physical path