diff --git a/app/src/Controller/AppController.php b/app/src/Controller/AppController.php index efb407076..35b51d485 100644 --- a/app/src/Controller/AppController.php +++ b/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) {