- Status changed to Closed: duplicate
almost 2 years ago 7:54pm 1 February 2023 - ๐ฎ๐ณIndia abhishek@kumar
diff --git thomas-aquinas\web\modules\contrib\linkit\src\Plugin\Linkit\Matcher\EntityMatcher.php
line no.326
Remove:
$url_results = $this->findEntityIdByUrl($string);
$result = array_merge($query_result, $url_results);Add :
$url_results = (array) $this->findEntityIdByUrl($string);
$result = array_merge($query_result, $url_results);
$options = [];
To resolve the issue with entity matching, Iโve made a small adjustment to the code. The update ensures that URL query results are always treated as an array, preventing errors. Hereโs the change: