- Issue created by @nicklasmf
What about rather than throwing an exception the code is wrapped in a try/catch block and if the exception/s are captured then you return either an empty array or an array with error messages in it?
Without using clean URL's, the forward slash break the query when at the start, the end or in between spaces.
TypeError: Drupal\search_api_page\Controller\SearchApiPageController::finishBuildWithoutResults(): Argument #2 ($result) must be of type Drupal\search_api\Query\ResultSetInterface, null given, called in /var/www/html/webroot/modules/contrib/search_api_page/src/Controller/SearchApiPageController.php on line 125 in Drupal\search_api_page\Controller\SearchApiPageController->finishBuildWithoutResults() (line 294 of modules/contrib/search_api_page/src/Controller/SearchApiPageController.php).
When tested with clean URL's, it just ignores the slash. So the issue is related to not using clean URL's.
Following queries breaks:
Active
1.0
Code
What about rather than throwing an exception the code is wrapped in a try/catch block and if the exception/s are captured then you return either an empty array or an array with error messages in it?