From a72d24a67299a9f351e145a19cc58ff8eeb1b5ca Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 7 Jul 2021 09:37:17 +0200 Subject: [PATCH] config/module(dis|en)able: Explicitly reload the window Redirecting to `left#!right` by HTTP doesn't work and is the wrong solution anyway. --- application/controllers/ConfigController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index f104a902a..30b92ecdb 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -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();