How global search redirect to search_results.do in CMS

Ashish Kumar Ag
Kilo Guru

I want to know where the redirection is defined that Global search result in CMS will be displayed in page search_results.do

23 REPLIES 23

Ashish Kumar Ag
Kilo Guru

When you click on the search though header search box in CMS it redirect to search_result.do with the results.


In search_result.do we have another search box, which is redirecting the user to view_content.do page which should be search_result.do itself.




Any suggestion.


Ashish Kumar Ag
Kilo Guru

Hi Pradeep SharmaTravis ToulsonMark Stanger



Any idea on this.


I couldn't found any code where the search redirection URL is defined.


Moreover from community it seems like redirection to view_content.do happens when there is some issue with the landing Page(some configuration missing).


i have also checked CMS Search   and in my end the configuration is fine.


.


Please suggest what might be the probable reason.



Thanks!


Hi Ashish,



The view_content.do page is an xml template stored in the ServiceNow black box.   It is basically the control page for the whole CMS.   Given that the Search page is specified in the configuration of the CMS, my best guess at the moment is that the search redirection is handled in the view_content template.   I will have to do some more digging when I get a chance unless Pradeep or Mark can shed some light.


Gurpreet07
Mega Sage

It's bz search_results.do (Portal - Search Results) is referenced in Search page field of content site.re.JPG


Replace it with any other page . Make sure to include Search results global content block in that page