After upgrade to 7.x-1.3 facets are still displayed, but when checking or clicking one of its limiting item (date, author, etc), the result page is without _any_ results. That is because the link from the facet misses the searched keyword.
Example: /search/result/apparmor -> search string is 'apparmor'
After clicking a facet item: /search/result?f[0]=type%3Abook_page -> ('book_page' is a content type)
I guess it should be '/search/result/apparmor?f[0]=type%3Abook_page'
the keyword 'apparmor' is missing
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | search_api_facetapi.patch | 848 bytes | er_gaurav_sharma |
| #4 | search_api_facetapi.patch | 55.66 KB | er_gaurav_sharma |
| #3 | search_facet_api.diff | 515 bytes | er_gaurav_sharma |
Comments
Comment #1
alpp commentedi also had the same problem.
when i click on a facet it gives the link: /search?f[0]=field_name%3A5
but it should be: /search/whateverthekeywordis?f[0]=field_name%3A5
did anyone else experience the same problem? and did you find any solutions? i can't use facets at all.
PS: i rolled back to 1.2 and it all works fine now.
Comment #2
er_gaurav_sharma commentedHello there,
yes i also having in same situation. i just upgraded to version 1.3 and my facet url goes wrong.
Regards
Gaurav Sharma
Comment #3
er_gaurav_sharma commentedHell Dear,
here is the patch and enjoy the new version.
Regards
Gaurav Sharma
Comment #4
er_gaurav_sharma commentedI guess previous patch is not built properly. Here is the final one. try it don't try the previous one.
Comment #5
er_gaurav_sharma commentedi think my git has been corrupted. So i reinstall it and recreate the patch. Hope that will work.
Comment #6
alpp commentedthe last (5) patch works ok for me. thanks.
Comment #7
EWB commentedThanks er_gaurav_sharma, patch #5 works for me as well.
Comment #8
aaronbaumanI believe the preferred method is to use
request_path()instead of$_GET['q'], as in #1827272: Facet path can be incorrectly returnedComment #9
pirouz commentedComment #10
pirouz commentedtrying to use git to patch this issue
Comment #11
scor commentedI can confirm this issue was fixed with #1827272: Facet path can be incorrectly returned, which is available in the latest dev snapshot of search_api.