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

Comments

alpp’s picture

i 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.

er_gaurav_sharma’s picture

Hello there,

yes i also having in same situation. i just upgraded to version 1.3 and my facet url goes wrong.

Regards
Gaurav Sharma

er_gaurav_sharma’s picture

StatusFileSize
new515 bytes

Hell Dear,

here is the patch and enjoy the new version.

Regards
Gaurav Sharma

er_gaurav_sharma’s picture

StatusFileSize
new55.66 KB

I guess previous patch is not built properly. Here is the final one. try it don't try the previous one.

er_gaurav_sharma’s picture

StatusFileSize
new848 bytes

i think my git has been corrupted. So i reinstall it and recreate the patch. Hope that will work.

alpp’s picture

the last (5) patch works ok for me. thanks.

EWB’s picture

Thanks er_gaurav_sharma, patch #5 works for me as well.

aaronbauman’s picture

Status: Active » Closed (duplicate)

I believe the preferred method is to use request_path() instead of $_GET['q'], as in #1827272: Facet path can be incorrectly returned

pirouz’s picture

pirouz’s picture

trying to use git to patch this issue

scor’s picture

I 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.