Suggested results and Recent searches are returning catalog items which open native UI in ESC

Sharan Ellendul
Tera Contributor

Hi All,

 

When tried to search for a text in ESC portal, suggested results and recent search results are returning the catalog items, and when opened them, they are opening in native UI. Can anyone help me in removing this configuration?

 

 

SharanEllendul_2-1733379183319.png

When opening the above yellow highlighted items, they are getting opened in Native UI

1 REPLY 1

Anand Kumar P
Giga Patron
Giga Patron

Hi @Sharan Ellendul ,

 

Open Widgets from left navigation search for "Recent & Popular Items" widget. Below script in that widget they are gliding sp_log table to get the recent items.
https://YOURINSTANCENAME/sp_widget.do?sys_id=4fc1dd5387500300e0ef0cf888cb0baa&sysparm_record_target=...

 

https://YOURINSTANCENAME/catalog_channel_analytics_list.do?sysparm_clear_stack=true

data.limit = options.limit || 8;
    var recent_by = options.recent_by || 'view';
    var recent = new GlideRecord('sp_log');
    if (recent_by === 'view')
        recent.addEncodedQuery('userDYNAMIC90d1921e5f510100a9ad2572f2b477fe^type=Cat Item View^sys_created_onONThis quarter@javascript:gs.beginningOfThisQuarter()@javascript:gs.endOfThisQuarter()');
 
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand