Problem/Motivation
I've been using Faceted search filtering on the website for a number of years with no problems until recently where the URLs for the facet aren't picking up the correct URL, for example:
let's say the domain is mysite.com
and the page where the filters are is /collection/cars where collection and cars are a taxonomy
- collection
- cars
Therefore the full URL would be mysite.com/collection/cars
But the facets uses: mysite.com/collection/%25?f%5B0%5D=field_cylinders%3A9311
when it should be: mysite.com/collection/cars/?f%5B0%5D=field_cylinders%3A9311
This was never a problem till the recent Drupal and modules-update
I tried rebuilding the search index. simplified the URL to mysite.com/test and the URL is always wrong. I managed a workaround seeing Pretty paths but while it works, it resolves to the node ID and not the page name. either way, it's not workable.
Any thoughts on how to resolve the issue?
thanks
Marcel
Issue fork facetapi-3259231
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
chaloum commentedComment #3
ecvandenberg commentedSame here. I also do not know when this started. I did not notice it untill a client reported it today.
In my case the facet is active on a taxonomy page. So the URL is something like
mysite.com/taxonomy/term/28
Then when you use a facet it goes to mysite.com/taxonomy/term/%?f[0]=field_name:23
It should be mysite.com/taxonomy/term/28?f[0]=field_name:28
When the facet is used on a view pages like mysite.com/search it works fine.
The facets on that page go to
mysite.com/search?f[0]=field_name:28
So perhaps it only goes wrong on taxonomy pages.
Comment #4
chaloum commented@ecvandenberg No I haven't been able to directly solve the issue and as you have said it happened after a recent Drupal core and modules-update. I do have a workaround that involves using the Factets pretty paths module but the problem with that is it defaults to the node/nid URL which makes breaks the block layout
Comment #5
ecvandenberg commentedTo narrow it down, this is what goes wrong.
The taxonomy view has pad taxonomy/term/%
The facet uses that pad to build the facet pad. It does not replace the % with the actual value of the current page.
Comment #7
karlsheaOops, shouldn't have opened an issue fork.
Looks like this may be related to getting the view's base path in the search_api module.
Comment #8
karlsheaPatch testing is requested in the related issue, can anyone following this issue give it a try?
Comment #9
ecvandenberg commentedI will...