- Issue created by @evamtinez
Facet checkbox links (using the “List of checkboxes” widget) do not properly encode special characters in query parameters, specifically the +
symbol.
When a facet value includes a +
, such as I+D
, the URL generated after selecting the checkbox includes it as-is (+
) instead of URL-encoding it to %2B
. This results in the value being interpreted as a space (
) instead of a plus, which breaks the filtering.
This bug affects the accuracy of the filtering functionality when facet values contain +
or other special characters.
+
in its value, e.g., I+D
.+
.?f[0]=field_name:I+D
?f[0]=field_name:I%2BD
This issue is currently mitigated with a temporary workaround, which is provided as a patch attached to this issue. The workaround ensures that query parameters used in facet checkbox links are correctly encoded — particularly characters like +
, which are currently not encoded and therefore misinterpreted.
The patch modifies the facets_filter.facets
JavaScript behavior to apply encodeURIComponent()
to all query parameter values before redirecting.
This is not intended as a permanent fix but can be used to prevent broken filters until a proper solution is implemented in the module.
Active
1.8
Code