I have a Views page that displays based on the context of the taxonomy term name.
Path: /category/network/%
drupal views
Example page: /category/network/ethernet, where “ethernet” is the context Taxonomy term name.
I am displaying an open BFE filter with a network selection. This filter works on the previous levels of the URL, such as /category/network or /category/. But it does not work when the open page has the URL /category/network/ethernet.
BFE creates a URL like: /network/ethernet?field_network_rel_target_id%5B1372%5D=1372 because the term name is already set in the URL.
Using AJAX does not help. Can anyone suggest how to solve this?
I’ve tried adding multiple context filters to get to the option to have the open filter ignore the current context.
upd:
I found that the Views Filter Harmonizer module does this, but only for Drupal 7.
Here’s the quote:
“Since the contextual filter sets the “bounds” for the page, any filtering by the visitor through the exposed filter on that page can only narrow down the results set, not broaden it. In other words the exposed filter appears not to be working properly.”
I don’t know if this can be achieved without a module. In theory it sounds logical that for a contextual filter we should specify that it should only work if we don’t have any URL parameters set. But maybe the problem is that the context will override the exposed filter anyway.
lisop is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.