How to set a menu to open links in new tab in the Service Portal?

Alok21
Giga Expert

Hi Team,

I know that there's not an option for setting a Menu Item to open in a new tab. I tried to update _blank and _spd in the URL target field in menu item form but it is not working and on click it is opening in the same tab. 

Any input is highly appreciated.

Regards,

Alok sahu

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

try the solution suggested to the below thread, it should work:

https://community.servicenow.com/community?id=community_question&sys_id=afa00765db98dbc01dcaf3231f96...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

View solution in original post

21 REPLIES 21

Sorry, just tested quickly in my PDI, there is no need to create a custom True/False field and change the menuTemplate code, simply put the following in the URL target field

_blank

IMPORTANT: check if you have any rule or filter in your browser that will BLOCK the new tab working or simply try using a different browser.

It works like a charm in my PDI, if you're in trouble, check my settings of the Menu Item:

find_real_file.png

This is my test using Chrome browser:

find_real_file.png

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Hi Alberto,

I tried _blank also, its not working.

find_real_file.png

Your URL is an internal page, you have to put the entire URL of ServiceNow, i.e. add before your URL https://instance_name.service-now.com/

Hi Alberto,

I tried with complete URL but the same issue ;(

 

Just tried to put a Dashboard URL, it works fine in my PDI:

find_real_file.png

Please ensure to copy the URL from the Dashboard setting:

find_real_file.png

Also, as I told you before, try using a different browser or install Chrome from scratch, probably you have some rule installed in your browser that will block this.

IMPORTANT: If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto