From f9d3c1adeea2f3018ece1b9de82f13e6183d4d9a Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Fri, 27 Nov 2020 16:26:25 +0100 Subject: [PATCH] [BUGFIX] Cast pageUid in RedirectFinisher to string (#173) Due to an undiscovered breaking change, redirects in the RedirectFinisher don't work anymore if the pageUid is an integer. This change casts the pageUid to a string to workaround this new behavior. See https://review.typo3.org/c/Packages/TYPO3.CMS/+/65467 as well. --- Classes/Domain/Factory/CommentFormFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Factory/CommentFormFactory.php b/Classes/Domain/Factory/CommentFormFactory.php index bcd35675..824fef83 100644 --- a/Classes/Domain/Factory/CommentFormFactory.php +++ b/Classes/Domain/Factory/CommentFormFactory.php @@ -98,7 +98,7 @@ public function build(array $configuration, string $prototypeName = null): FormD $form->addFinisher($commentFinisher); $redirectFinisher = $objectManager->get(RedirectFinisher::class); - $redirectFinisher->setOption('pageUid', $this->getTypoScriptFrontendController()->id); + $redirectFinisher->setOption('pageUid', (string)$this->getTypoScriptFrontendController()->id); $form->addFinisher($redirectFinisher); $this->triggerFormBuildingFinished($form);