From da3e501ff314a585f63880860c8653524ca4e355 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 29 Sep 2021 20:55:24 +0300 Subject: [PATCH 1/3] New attempt to fix images in plugins/themes --- classes/plugin/AdminController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/plugin/AdminController.php b/classes/plugin/AdminController.php index c73def8a2..62c26f583 100644 --- a/classes/plugin/AdminController.php +++ b/classes/plugin/AdminController.php @@ -165,7 +165,13 @@ public function taskSave() // 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; } } From bef26581cdf84cad526404a24526e398f8ddc8c1 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 29 Sep 2021 20:58:42 +0300 Subject: [PATCH 2/3] New attempt to fix images in plugins/themes (fix) --- classes/plugin/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/plugin/AdminController.php b/classes/plugin/AdminController.php index 62c26f583..05df15e47 100644 --- a/classes/plugin/AdminController.php +++ b/classes/plugin/AdminController.php @@ -167,7 +167,7 @@ public function taskSave() default: if ($this->saveDefault()) { $route = $this->grav['uri']::getCurrentRoute(); - $this->setRedirect($route->withoutGravParam('task')->toString(), 302); + $this->setRedirect($route->withGravParam('task', null)->toString(), 302); $this->redirect(); } From f55cc15b20a4b9502b2e923f191202e36aa02b8c Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 29 Sep 2021 14:18:39 -0600 Subject: [PATCH 3/3] prepare for release --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10009bf92..6d5dfbcbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ 1. [](#new) * Updated SCSS compiler to v1.8 2. [](#improved) - * Updated with latest langugage strings from Crowdin.com + * Updated with latest language strings from Crowdin.com 3. [](#bugfix) * Fixed images from plugins/themes disappearing when saving twice