Linking Search Page While Keeping Facet Selection Not Working
I am trying to link a search page,
but the facet selection is not maintained when the page loads, queries entered are maintained though. This has failed on IE, chrome, and firefox. I saw a thread here that states it should just work without any configuration.
Am I missing something? I am using JS Search 0.9
The facets in the state are stored with their id:
It may be possible that the ID of your facets are different between page loads. If that happens, an URL from one "session" will contain the facet IDs of that session. The next page refresh would render different IDs and the state won't be able to match the selected values to the right facets anymore.
When the page loads, can you inspect the facet's main
div element attributes? Is the
data-id attribute value equals to "@fz95xspecialties2681_4ee8b18b93e742749856b8d9cc1e822f"?
If it's different, can you give me:
- Your Coveo for Sitecore version (build number: 3.0.XXXX)
- Your Sitecore version (7.X.YYMMDD or 8.X.YYMMDD)
As a workaround, you can specify a value in the "Unique Id" field of each of your facets in Sitecore. This is a field in the facet component properties.
I hope this helps,