mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Fix page saving in expert mode (/ != /home)
This commit is contained in:
@@ -282,7 +282,7 @@ class AdminController
|
||||
|
||||
// Find new parent page in order to build the path.
|
||||
$route = !isset($data['route']) ? dirname($this->admin->route) : $data['route'];
|
||||
$parent = $route ? $pages->dispatch($route, true) : $pages->root();
|
||||
$parent = $route && $route != '/' ? $pages->dispatch($route, true) : $pages->root();
|
||||
$obj = $this->admin->page(true);
|
||||
|
||||
// Change parent if needed and initialize move (might be needed also on ordering/folder change).
|
||||
|
||||
Reference in New Issue
Block a user