Using this alongside facetapi pretty paths, the current search 'active links' link to themselves...

For example:
(-) category/5-Panel

clicking (-) links to itself - you cannot remove the filter anymore.

Comments

Anonymous’s picture

The problem is in the class CurrentSearchItemActive extends CurrentSearchItem { and function execute():


...
      // Builds variables to pass to theme function.
      $data = array('facetapi_active_item' => $item);
      $variables = array(
        'text' => token_replace($pattern, $data),
        'path' => $this->getFacetPath($item, $adapter),
        'options' => array(
          'attributes' => $attributes,
          'html' => TRUE,
          'query' => $this->getQueryString($item, $adapter),
        ),
      );
...

The 'path' is simply a link to itself, instead of to *remove* itself.

Anonymous’s picture

Title: Current Search blocks active items include path to themselves: you cannot remove them anymore » Cannot remove facet links via (-)
Component: Current Search Blocks » Code

It actually happens to all links, not just the current search blocks.

guillaumev’s picture

Just marked http://drupal.org/node/1893686 as a duplicate

guillaumev’s picture

Project: Facet API » Search API
Version: 7.x-1.2 » 7.x-1.4
Component: Code » Facets
StatusFileSize
new592 bytes

This is actually a Search API 1.4 issue. Using the attached patch will fix it, but I'm not sure it is the right approach...

Anonymous’s picture

Project: Search API » Facet API
Version: 7.x-1.4 » 7.x-1.2
Component: Facets » Code
Status: Active » Closed (works as designed)

Seems to be an issue with FacetAPI Pretty path's "basePath".

Anonymous’s picture

Issue summary: View changes

Updated issue summary.