Hi all, In Faceted Navigation when we apply facet ...
# suitecommerce
p
Hi all, In Faceted Navigation when we apply facet with multi select behaviour Items api returns empty items beacuse facets delimiter is send in encoded format i.e ',' into %2C. This result in wrong behaviour of facets. Is there any workaround for it? It working fine if facets are url a path but not working when it is as url parameter. Example : custitem_ravi_product_size=I%2CII
s
Just so I'm clear about what's happening here: you have a field that is configured to accept multiple values (eg "I" and "II") and when your users select these values, it causes the the comma to become encoded. That is, this isn't one value with a comma in it?
p
Yeah correct
s
And in the configuration, have you set your Facet Delimiter > Between Facet Values value to a comma (,)?
p
Yeah when we use other symbol it doesnt encode it. It happens only for comma
s
What version of SCA?
Other customers had this issue with Elbrus
p
We are using SCA Elbrus
s
OK, this is probably the same thing
Open Facets.Translator.js
Make the following code change:
Copy code
// From this
tmp_options[facet_option_obj.facetName] = facet_option_obj.facetName + separator + encodeURIComponent(facet_option_obj.facetValue);

// To this
tmp_options[facet_option_obj.facetName] = facet_option_obj.facetName + separator + facet_option_obj.facetValue;
p
It is working perfectly now thank you
Also is there are any known adverse SEO impact of changing from "Facets in URL Path" to "Facets as URL Parameters"
s
I don't know for sure but I'm not sure it is recommended to index facet pages. If I recall correctly, there should be "no follow, no index" on facet links
p
Is there way to add "no follow, no index" on facet links ?
s
I have our asked our SEO expert and he says:
Typically you would turn facets into URL parameters unless the facet creates a valid and insightful URL combination that you plan to use for SEO purposes. Turning facets into URL parameters makes them not indexable through canonicalization.
p
Thank you for the answer!