mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-08 16:42:56 +01:00
Merge pull request #1191 from getgrav/grav-plugin-admin/patch-1
when checking if page is the home route, also check '/.' as current route
This commit is contained in:
@@ -492,7 +492,7 @@ class AdminController extends AdminBaseController
|
||||
}
|
||||
}
|
||||
|
||||
$parent = $route && $route != '/' && $route != '.' ? $pages->dispatch($route, true) : $pages->root();
|
||||
$parent = $route && $route != '/' && $route != '.' && $route != '/.' ? $pages->dispatch($route, true) : $pages->root();
|
||||
|
||||
$original_order = intval(trim($obj->order(), '.'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user