Skip to content

Commit

Permalink
Merge pull request #1191 from getgrav/grav-plugin-admin/patch-1
Browse files Browse the repository at this point in the history
when checking if page is the home route, also check '/.' as current route
  • Loading branch information
andrewscofield authored and rhukster committed Aug 22, 2017
1 parent d7df66d commit 9169565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/admincontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public function taskSave()
}
}

$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(), '.'));

Expand Down

0 comments on commit 9169565

Please sign in to comment.