Commit 38603a6a authored by marthinal's avatar marthinal
Browse files

Issue #2686323 by marthinal, borisson_: Facet links are not working (core search)

parent 9d7fc961
......@@ -101,7 +101,7 @@ class CoreNodeSearchFacetSource extends FacetSourcePluginBase implements CoreSea
$request = \Drupal::requestStack()->getMasterRequest();
$search_page = $request->attributes->get('entity');
if ($search_page instanceof SearchPageInterface) {
return '/' . $search_page->getPath();
return 'search/' . $search_page->getPath();
}
return '';
}
......@@ -177,7 +177,6 @@ class CoreNodeSearchFacetSource extends FacetSourcePluginBase implements CoreSea
}
return FALSE;
}
/**
......
......@@ -72,6 +72,10 @@ class IntegrationTest extends CoreSearchFacetsWebTestBase {
$this->assertLink('page (10)');
$this->assertLink('article (10)');
// Verify that the label is correct for a clicked link.
$this->clickLink('page (10)');
$this->assertLink('(-) page (10)');
// Do not show the block on empty behaviors.
// Truncate the search_index table because, for the moment, we don't have
// the possibility to clear the index from the API.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment