Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
facets
Commits
38603a6a
Commit
38603a6a
authored
Mar 12, 2016
by
marthinal
Browse files
Issue
#2686323
by marthinal, borisson_: Facet links are not working (core search)
parent
9d7fc961
Changes
2
Hide whitespace changes
Inline
Side-by-side
core_search_facets/src/Plugin/facets/facet_source/CoreNodeSearchFacetSource.php
View file @
38603a6a
...
...
@@ -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
;
}
/**
...
...
core_search_facets/src/Tests/IntegrationTest.php
View file @
38603a6a
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment