Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get the 403 error when try to use search_api_autocomplete instead of suggestions. I get it only on the latest dev version. Not the "beta" one.
The reason is that autocomplete path is a bit incorrect. I get %20 (a whitespace) and the end of URI whe it's not needed.
Patch that fixes it:
Comment | File | Size | Author |
---|---|---|---|
#3 | 1915132--trailing_space_in_url-3.patch | 1.41 KB | drunken monkey |
#2 | search_api_autocomplete-403error-1915132-3.patch | 864 bytes | vikramy |
autocompl.patch | 864 bytes | Soul88 | |
Comments
Comment #1
vikramy CreditAttribution: vikramy commentedI agree and the above patch fixes this issue.
Comment #2
vikramy CreditAttribution: vikramy commentedTrying to follow this naming convention. Thanks Soul88.
[module_name]-[short-description]-[issue-number]-[comment-number].patch
Comment #3
drunken monkeyThanks for reporting this problem and providing a patch!
However, we cannot fix it this way, as that's what caused #1708242: Autocomplete blows up if you don't set fields to search within your views fulltext filter. If the fix for that issue leads to this problem, we'll have to find another way …
Maybe using a single dash instead of a space? Please test the attached patch!
Comment #4
vikramy CreditAttribution: vikramy commentedYes, this works great. Thank you.
Comment #5
drunken monkeyThanks for testing!
Committed.