mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-04 14:50:59 +01:00
Fix for page not redirecting when changing folder name - #67 (requires grav update)
This commit is contained in:
@@ -882,8 +882,8 @@ class AdminController
|
||||
|
||||
// Always redirect if a page route was changed, to refresh it
|
||||
if ($obj instanceof Page\Page) {
|
||||
if (method_exists($obj, 'unsetRoute')) {
|
||||
$obj->unsetRoute();
|
||||
if (method_exists($obj, 'unsetRouteSlug')) {
|
||||
$obj->unsetRouteSlug();
|
||||
}
|
||||
$this->setRedirect($this->view . $obj->route());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user