config/module(dis|en)able: Explicitly reload the window

Redirecting to `left#!right` by HTTP doesn't work
and is the wrong solution anyway.
This commit is contained in:
Johannes Meyer 2021-07-07 09:37:17 +02:00
parent 228e503131
commit a72d24a672
1 changed files with 6 additions and 2 deletions

View File

@ -184,7 +184,9 @@ class ConfigController extends Controller
$form->onSuccess();
if ($module->hasJs()) {
$this->redirectHttp('config/modules');
$this->getResponse()
->setReloadWindow(true)
->sendResponse();
} else {
if ($module->hasCss()) {
$this->reloadCss();
@ -221,7 +223,9 @@ class ConfigController extends Controller
$form->onSuccess();
if ($module->hasJs()) {
$this->redirectHttp('config/modules');
$this->getResponse()
->setReloadWindow(true)
->sendResponse();
} else {
if ($module->hasCss()) {
$this->reloadCss();