Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix broken global search,get primary link error (#214)
Ioannis committed 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
@@ -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) {

0 comments on commit fa846da

Please sign in to comment.