mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-27 08:16:41 +01:00
Fix '+New Folder' to work with new parent picker
This commit is contained in:
@@ -1246,7 +1246,7 @@ class AdminController extends AdminBaseController
|
||||
|
||||
$data = (array)$this->data;
|
||||
|
||||
if ($data['route'] === '/') {
|
||||
if ($data['route'] === '' || $data['route'] === '/') {
|
||||
$path = $this->grav['locator']->findResource('page://');
|
||||
} else {
|
||||
$path = $this->grav['page']->find($data['route'])->path();
|
||||
|
||||
Reference in New Issue
Block a user