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

Hi Ashish,



Above code belongs to content block 'search results global' . its just for displaying search results but its not rendering the   search text box on the page its some where else.


Like you said you have two search box . one at top right corner and another is in the middle of the page . Edit that content block in which the middle search box is present.There will be the code.


Hi Gurpreet,



I have not created the search box. Its coming with the search result OOB. By editing the search page and clicking on the edit of that content block its returning the above code. probably textsearch.xml where the search box part is defined.



Please suggest.


efewf.png


there is one more parameter they are setting in evaluate statement of search results global block



RP.setView("text_search")



Try to add it after instruction


var sysparm_search = RP.getParameterValue('sysparm_search');


You also need to check Frame buster check box for Portal - Search Results(search_results) page .


Done everything. Unfortunately still no luck.