Skip to content

Commit

Permalink
To decide whether or not to add the underlying query as JS, use the a…
Browse files Browse the repository at this point in the history
…rguments returned by the SearchService rather than those from the request, to make sure modifications by slots listening to signal "initializeActionAfterArgumentsFilled" are considered.
  • Loading branch information
cradeck committed Aug 28, 2023
1 parent 81225ce commit 26ec0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function detailAction(string $id)
$arguments = $this->searchProvider->getRequestArguments();
$detail = $this->searchProvider->getDocumentById($id);

if ($this->request->hasArgument('underlyingQuery')) {
$underlyingQueryInfo = $this->request->getArgument('underlyingQuery');
if ($arguments['underlyingQuery']) {
$underlyingQueryInfo = $arguments['underlyingQuery'];
FrontendUtility::addQueryInformationAsJavaScript(
$underlyingQueryInfo['q'],
$this->settings,
Expand Down

0 comments on commit 26ec0ac

Please sign in to comment.