mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-24 09:20:41 +01:00
fix unneccesary redirect on page save
This commit is contained in:
@@ -742,7 +742,7 @@ class AdminController
|
||||
}
|
||||
|
||||
// Redirect to new location.
|
||||
if ($obj instanceof Page\Page && $obj->route() != $this->admin->route()) {
|
||||
if ($obj instanceof Page\Page && ltrim($obj->route(), '/') != $this->admin->route) {
|
||||
$this->setRedirect($this->view . '/' . $obj->route());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user