- 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
Since this is in the 1.x version of facets and it is regarding ajax, I'm going to close this issue. We are only supporting ajax with views in facets 3.x.
Facets are added to the page through the \Drupal\facets\Controller\FacetBlockAjaxController::ajaxFacetBlockView()
. However, this method discards any metadata on the render array since the renderable array is first reduced to a string before it calling the ReplaceCommand.
As a result, dependent facets are never added to the DrupalSettings. Any subsequent interaction will not result in an AJAX call, but will default to a regular page request.
Add two facets to a facet block. The second facet should be dependant on the first facet. Notice interaction with the second facet results in a page reload.
Send the full renderable array to the ReplaceCommand, so render array metadata is collected by the renderer service and correctly added to the page.
Interaction with dependant facets on a facet source with AJAX enabled results in AJAX behaviour.
None.
None.
Closed: won't fix
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Since this is in the 1.x version of facets and it is regarding ajax, I'm going to close this issue. We are only supporting ajax with views in facets 3.x.