Skip to content

Commit

Permalink
Fix broken global search,get primary link error (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis authored Sep 12, 2024
1 parent 573c009 commit fa846da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ protected function populatedPrimaryLink(string $potentialPrimaryLink): Object
: null;

$cur = new \stdClass();
$cur->value = $this->request->getQuery($potentialPrimaryLink);
// Check both the query parameters(GET request) and the body(POST request).
$cur->value = $this->request->getQuery($potentialPrimaryLink) ?? $this->request->getData($potentialPrimaryLink);
// We found a populated primary link. Store the attribute and break the loop.
$cur->attr = $potentialPrimaryLink;
if($potentialPlugin) {
Expand Down

0 comments on commit fa846da

Please sign in to comment.