Fix '+New Folder' to work with new parent picker

This commit is contained in:
Andy Miller
2019-07-11 09:15:07 -06:00
parent 29c2e12e85
commit c318d88f03
2 changed files with 2 additions and 1 deletions

View File

@@ -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();