From cbe8d64669743aa192f5b771185d727a668198d2 Mon Sep 17 00:00:00 2001 From: BFallert Date: Tue, 5 Nov 2024 15:29:50 +0100 Subject: [PATCH] fix links in facets --- Classes/Controller/AbstractController.php | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Classes/Controller/AbstractController.php b/Classes/Controller/AbstractController.php index 6fc40a2cc..ecb6d3509 100644 --- a/Classes/Controller/AbstractController.php +++ b/Classes/Controller/AbstractController.php @@ -238,9 +238,33 @@ protected function getLanguageService(): LanguageService */ protected function getParametersSafely(string $parameterName) { + //var_dump($parameterName); + //var_dump('
getArguments'); + //var_dump($this->request->getArguments()); + //var_dump('
getQueryParams'); + //var_dump($this->request->getQueryParams()); + //var_dump('
'); if ($this->request->hasArgument($parameterName)) { return $this->request->getArgument($parameterName); } + if ($this->request->getQueryParams()) { + $myQueryParams = $this->request->getQueryParams(); + $myType = ''; + if (array_key_exists('tx_dlf_search', $myQueryParams)) { + $myType = 'tx_dlf_search'; + } elseif (array_key_exists('tx_dlf_listview', $myQueryParams)) { + $myType = 'tx_dlf_listview'; + } + if ($myType <> '') { + $myDLFSearch = $myQueryParams[$myType]; + if (array_key_exists($parameterName, $myDLFSearch)) { + return($myDLFSearch[$parameterName]); + } + } else { + var_dump('
getQueryParams unerwarteter Type'); + var_dump($this->request->getQueryParams()); + }; + } return null; }