Fix for page not redirecting when changing folder name - #67 (requires grav update)

This commit is contained in:
Andy Miller
2015-08-14 15:00:48 -06:00
parent a45e2ce28d
commit 274c4ca410
2 changed files with 2 additions and 3 deletions

View File

@@ -158,7 +158,6 @@ class Admin
$this->setMessage($l->translate('LOGIN_LOGGED_IN'), 'info');
// $redirect_route =$this->getLoginRedirect() ?: $this->uri->route();
$redirect_route = $this->uri->route();
$grav->redirect($redirect_route);
}

View File

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