From 60b3cfed7817052581cbb6f115c5cad67b74beae Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Tue, 1 Apr 2025 09:11:50 +0200 Subject: [PATCH] BUGFIX: Fix redirects inside the backend module to ensure the types match --- Classes/Controller/ModuleController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/ModuleController.php b/Classes/Controller/ModuleController.php index 12ad852..7de94fe 100644 --- a/Classes/Controller/ModuleController.php +++ b/Classes/Controller/ModuleController.php @@ -399,7 +399,7 @@ public function createTaxonomyAction(string $parentNodeAddress, string $name, ar 'vocabulary', null, null, - ['vocabularyNodeAddress' => NodeAddress::fromNode($vocabularyNode)] + ['vocabularyNodeAddress' => NodeAddress::fromNode($vocabularyNode)->toJson()] ); } @@ -456,7 +456,7 @@ public function updateTaxonomyAction(string $taxonomyNodeAddress, string $name, ); } - $this->redirect('vocabulary', null, null, ['vocabularyNodeAddress' => NodeAddress::fromNode($vocabularyNode)]); + $this->redirect('vocabulary', null, null, ['vocabularyNodeAddress' => NodeAddress::fromNode($vocabularyNode)->toJson()]); } /** @@ -481,7 +481,7 @@ public function deleteTaxonomyAction(string $taxonomyNodeAddress): void sprintf('Deleted taxonomy %s', $this->nodeLabelGenerator->getLabel($taxonomyNode)) ); - $this->redirect('vocabulary', null, null, ['vocabularyNodeAddress' => NodeAddress::fromNode($vocabularyNode)]); + $this->redirect('vocabulary', null, null, ['vocabularyNodeAddress' => NodeAddress::fromNode($vocabularyNode)->toJson()]); } protected function rebaseCurrentUserWorkspace(): void