Slash in query breaks

Created on 3 May 2024, 12 months ago
Updated 10 June 2024, 10 months ago

Problem/Motivation

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.

Steps to reproduce

Following queries breaks:

  • /hey
  • hey/
  • hey / hey
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇰Denmark nicklasmf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024