Open menu item link in new tab when we click on it in service portal.

sumitjumale
Kilo Contributor

I have created new menu item in service portal.

find_real_file.png

find_real_file.png

On click of that menu item, I want to open a new window with target URL instead of new tab.

Please suggest.

Regards,

Sumit Jumale

6 REPLIES 6

Deepak Ingale1
Mega Sage

Hi Sumit,


There is no OOB way as such to open link in new window, however there exists a customized solution which will help you to achieve your goal



How do you set a menu to open links in new window in the Service Portal?


marcoamoruso
ServiceNow Employee
ServiceNow Employee

Hi Sumit,

 

There is the problem PRB1254527: "Service Portal: Icon Menu List widget with a target defined in the "Menu Item" is not honored" that describes the issue. The defect is fixed in Madrid.

Below you can find a workaround for it.

 

Change the HTML template for widget “Icon Menu List”:

<a class="list-group-item no-border" href="{{::item.href}}" target="{{item.url_target}}" ng-repeat="item in ::data.items">
 
Kind regards,
Marco

saigattu
Kilo Expert

Might be a late reply, but there is a simpler way of achieving this.

Right click on menu item form -> Configure->Form Layout -> get the URL Target field from from available list onto your form -> Save

Now add the value "_blank" for URL Target field.

 

find_real_file.png

Thanks,

SG.

Simple is always best 🙂

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul