Why service portal advanced typehead search not working and throws error "newUrl.url is not a function"?Issue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Symptoms Advanced typeahead search was not working as expected on the service portal. Observed below error in the browser console, Error: newUrl.url is not a functionapi.controller/c.onSelect@typeahead-search.js:14:38fn@https://xxxx.service-now.com/scripts/js_includes_sp.jsx?v=09-20-2018_1514&lp=Mon_Aug_13_01_08_48_PDT_2018&c=29_446 line 13095 > Function:4:460scope.select@https://xxxx.service-now.com/scripts/js_includes_sp.jsx?v=09-20-2018_1514&lp=Mon_Aug_13_01_08_48_PDT_2018&c=29_446:46330:1fn@https://xxxx.service-now.com/scripts/js_includes_sp.jsx?v=09-20-2018_1514&lp=Mon_Aug_13_01_08_48_PDT_2018&c=29_446 line 13095 > Function:4:352initializeBinding/destination[scopeName]... Release Any supported release. Cause Below type-ahead widget code was failing, if ($item.target)window.open($item.url, $item.target);else {var newUrl = $location.url($item.url);spAriaFocusMan******ager.navigateToLink(newUrl.url());} This was due to the reason that url is undefined in $item object and hence type ahead search link didn't work and throws java script error. Resolution As per the following document,https://docs.servicenow.com/csh?topicname=conf-service-portal-know-management.html&version=latest#conf-url-km-article-view-page , add the below line of code into the "Knowledge Base" widget and it should resolve the issue. article.url='?id=kb_article_view&sys_kb_id=' + article.sys_id; Additional Information Service portal Service portal search