'Did You Mean' Results are not clickable, they do not return any results on the Service Portal


Description

'Did You Mean' Results are not clickable, they do not return any results on the Service Portal

Release or Environment

All

Cause

The user is most likely using the old search widget and not the new faceted widget. In order to see the list of widget in the Service Portal Search Page, execute the following code in the browser console:

 

$("div [widget='widget']").css("border", "1px solid red").css("padding-top", "20px").css("position", "relative").each(function(i){
    var scope = $(this).scope();
    var widget = scope.widget;
    var elem = $("<div style='position: absolute; top: 1px; left: 1px'><a target='_blank' href='/$sp.do?id=widget_editor&sys_id="+ widget.sys_id+"'> "+ widget.name +"</a>  </div>");
    var printScope = $("<a href='javascript:void(0);'>Print scope</a>").on('click', function(){ console.info(scope); });
    elem.append(printScope);
    $(this).append(elem);
    });

If the faceted widget is not in the page, it needs to be used instead of the old widget.

 

Resolution

Navigate to the Service Portal -> Page Route Maps, and locate the "search", ensure it is set to active:

/nav_to.do?uri=sp_page_route_map.do?sys_id=3821492587001300a785940307cb0bef

For more information:

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/build/service-portal/task/enable-facets.html