mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Always redirect back to pages
This commit is contained in:
@@ -1061,10 +1061,7 @@ class AdminController
|
|||||||
$results = Cache::clearCache('standard');
|
$results = Cache::clearCache('standard');
|
||||||
|
|
||||||
// Set redirect to either referrer or pages list.
|
// Set redirect to either referrer or pages list.
|
||||||
$redirect = $uri->referrer();
|
$redirect = 'pages';
|
||||||
if ($redirect == $uri->route()) {
|
|
||||||
$redirect = 'pages';
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.SUCCESSFULLY_DELETED'), 'info');
|
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.SUCCESSFULLY_DELETED'), 'info');
|
||||||
$this->setRedirect($redirect);
|
$this->setRedirect($redirect);
|
||||||
|
|||||||
Reference in New Issue
Block a user