To get the first part you can use `nlapiResolveURL...
# suitescript
m
To get the first part you can use
nlapiResolveURL('TASKLINK', 'LIST_SEARCHRESULTS')
, but that will still give you the internal URL