mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-04-05 04:08:47 +02:00
Fixed parent field not working with regular pages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user