mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
New attempt to fix images in plugins/themes
This commit is contained in:
@@ -165,7 +165,13 @@ class AdminController extends AdminBaseController
|
||||
// Not used if Flex-Objects plugin handles users.
|
||||
return $this->saveUser();
|
||||
default:
|
||||
return $this->saveDefault();
|
||||
if ($this->saveDefault()) {
|
||||
$route = $this->grav['uri']::getCurrentRoute();
|
||||
$this->setRedirect($route->withoutGravParam('task')->toString(), 302);
|
||||
$this->redirect();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user