Gravatar for sivakumarsmiles4u@gmail.com

Question by sivakumar777, Aug 2, 2016 10:38 AM

Coveosearch results Url is coming with Sitecore-modules/Web/coveo

In my search results content url is coming as "mywebsite/sitecore-modules/web/coveo/Mycontentname…. I need to get "mywebsitename/Mycontentanme " … dont know what went wrong can anyone please help me out.

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Aug 2, 2016 11:11 AM

Hi,

The configuration of the way results URLs are outputted is located on Sitecore's side. I cannot tell you the exact settings to tweak but I can point Sitecore's documentation and the location of the settings having an influence on result URLs / what could be going on.

  1. Results URLs are determined at query time by the ResolveResultClickableUriProcessor (defined in Coveo.SearchProvider.Rest.config). Ensure this processor is defined.
  2. This processor simply calls Sitecore's LinkManager. Most settings of the link manager are located in your web.config (or Sitecore.config? if using Sitecore 8.1+).
  3. There could also be something wrong with your sites configuration. I know that one parameter of the sites definitions determines the way URLs are computed while another one determines the way URLs are interpreted -> sometimes, this is clients problem.

Our documentation explaining all that is located here.

Gravatar for sivakumarsmiles4u@gmail.com

Comment by sivakumar777, Aug 2, 2016 4:09 PM

Its not sitecore config problem , when items are indexed I went and search in index brwoser of coveo search api. I clicked on details and look for my url field ,that field value is comings with "sitecore-modules/web/coveo/……. " which wrong, so there is a problem in indexing itself.

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Aug 2, 2016 4:18 PM

Since there is no way to figure out from which Sitecore site an item will be looked at, your URLs may be wrong in your index, this is normal.

As I mentioned in my answer above, RESULTS URLS ARE DETERMINED AT QUERY TIME. The index is being queried, and when C4SC receives the results, it asks Sitecore to computes the URL from the current context.

Ask a question