Service portal typeahead search results redirect to wrong URL

_-jasonr-_
Giga Contributor

Hello Community,

We are using a clone of the Homepage Search widget. When keywords are typed into the bar, the results are displayed in a drop window.

find_real_file.png

When the results are selected, ie. the top result above, the redirect URL is taking the user to the Social Q&A page.

find_real_file.png

*Note* When the user inputs the keywords and presses Enter, the same link on the search results page is correct.

find_real_file.png    

find_real_file.png

Please can someone direct me to where I can change the typeahead search results URLs.

Thank you.

Jason R.

5 REPLIES 5

_-jasonr-_
Giga Contributor

Does anyone in the community have a suggestion on this topic? Any help would be great.


Are you able to post the customisations you've made to your cloned Homepage Search widget?   e.g. server side scripts etc?


I'm unable to replicate on my instance.


function() {


  /* widget controller */


  var c = this;


}


This function was placed in the client controller, and controllerAs 'c' are the only changes made to the OOB widget.


Hi Jason,



The data that comes in for the typeahead comes from the Search Source setup. Did you happen to clone or use the Social Q&A search source as a template to create a search source for searching Request Items?



If so, then what probably needs to be done is change the typeahead template or page the search source points to depending on the search source settings.


Here are some screenshots to walkthrough the process.



homepage_search_widget.png


typeahead_search_widget.png


typeahead_template.png


search_source_typeahead_template.png