diff --git a/Classes/Controller/SearchController.php b/Classes/Controller/SearchController.php index 4760d99838..99a33ba365 100644 --- a/Classes/Controller/SearchController.php +++ b/Classes/Controller/SearchController.php @@ -49,7 +49,7 @@ protected function initializeAction(): void protected function mapGlobalQueryStringWhenEnabled(): void { - $query = GeneralUtility::_GET('q'); + $query = $this->request->getQueryParams()['q'] ?? null; $useGlobalQueryString = $query !== null && !$this->typoScriptConfiguration->getSearchIgnoreGlobalQParameter(); if ($useGlobalQueryString) {