Gravatar for chris.williams@readwatchcreate.com

Question by chris williams, May 5, 2016 9:09 PM

Can you link to a Coveo search page and pass in a facet value from the query string? (Not a duplicate issue)

I am trying to link to the search page with a facet selected. I tried to click on a facet and steal the link but that didn't work.

It seems when you click on a facet it puts a guid in it. For example: @fproductlevel1facet88622e07a3c83ee20495a89e144022fa692e5=[ @fproductlevel1facet88622df2e3dcff57741e29652b3fed32a60d2=[

If I remove the guid it does not select anything where does this guid come from? Can I link without it? What would I use to link to search page with facet selected?

Thanks

Chris Williams

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, May 6, 2016 8:07 AM

In the properties of your facet component, set the unique ID to something friendly.

The Unique ID is what will show up in the URL. If this property is not set, a GUID it is generated to replace it.

There is currently an issue with some versions of C4SC: the GUID is different everytime you load the page. This may be why you can't get it to work. This as been fixed on our side.

Gravatar for chris.williams@readwatchcreate.com

Comment by chris williams, May 6, 2016 9:00 AM

We have version Current Coveo for Sitecore version: 3.0.1226.0 and it is doing that to us. Was that a build with it broken and is there a 3.x build with it fixed. We are just about to launch so dont really want to go up to 4.x

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, May 6, 2016 9:16 AM

Fixed in 3.0 June 16, i.e. next release. But you really don't need that fix, just set the UniqueId property on your facets. It will take you ~15 seconds/facet component. Even if you had the fix, there would be a GUID appended to the query parameter, which is kind of ugly in an URL. Setting the Unique ID field is the way to go.

Ask a question