Gravatar for gling@houstonmethodist.org

Question by qch1595, Apr 6, 2017 8:57 PM

http://http/ issue in rest api clickuri

I have a REST API working fine on dev. Once I setup a QA Coveo server for the REST API, the clickUri returned in the result set has http://http/ which causes a broken link on my result page.

Anything I did wrong? How to remove it in the REST API? I don't want to manually replace it in my code.

Thanks.

2 Replies
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Apr 7, 2017 7:34 PM

You should check the `serverUrl` node in your `Coveo.SearchProvider.Custom.config`. It is most likely set to an invalid value.

Refer to this link if you want more information on how the `clickableUri` is computed in Coveo for Sitecore: https://developers.coveo.com/display/SitecoreV4/Understanding+How+The+ClickableUri+Value+Is+Computed

Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Apr 7, 2017 7:23 AM

I don't think the REST API can do this. Are you using the same index, search page, etc?

Gravatar for gling@houstonmethodist.org

Comment by qch1595, Apr 7, 2017 2:16 PM

I assume we use the same Sitecore to build the index. But the QA Sitecore was setup by a different team. It could be a little bit different.

Is it possible to find out what could cause this issue in the REST API?

Thanks.

Ask a question