diff --git a/Classes/ViewHelpers/SearchFormViewHelper.php b/Classes/ViewHelpers/SearchFormViewHelper.php index ac3d1d337b..e32b27fdc0 100644 --- a/Classes/ViewHelpers/SearchFormViewHelper.php +++ b/Classes/ViewHelpers/SearchFormViewHelper.php @@ -231,7 +231,7 @@ protected function getSuggestUrl(?array $additionalFilters, int $pageUid): strin $suggestUrl = $uriBuilder ->reset() ->setTargetPageUid($pageUid) - ->setTargetPageType($this->arguments['suggestPageType']) + ->setTargetPageType((int)$this->arguments['suggestPageType']) ->setArguments([$pluginNamespace => ['additionalFilters' => $additionalFilters]]) ->build(); @@ -250,7 +250,7 @@ protected function buildUriFromPageUidAndArguments($pageUid): string return $uriBuilder ->reset() ->setTargetPageUid((int)$pageUid) - ->setTargetPageType($this->arguments['pageType'] ?? 0) + ->setTargetPageType((int)($this->arguments['pageType'] ?? 0)) ->setNoCache($this->arguments['noCache'] ?? false) ->setArguments($this->arguments['additionalParams'] ?? []) ->setCreateAbsoluteUri($this->arguments['absolute'] ?? false)