How to make chat open in a new window

Jack62
Giga Guru

Evening all

 

We are about to move to the ESC from our old portal and we have one nagging issue left. On our current portal we have a link on the top right to live chat, which when clicked opens in a new window. This is added simply by configuring the agent chat queue on the portal page. on ESC menu this does not happen in the same way, as in it is the same chat configured on the chat queue but I have to add it into the header menu, when the user clicks on the link it opens but in the same window taking them away from ServiceNow, which we do not want. Is there anyway to configure the menu link to open in a new window?

 

Thanks

 

Jack

1 REPLY 1

AkshatRastogi
Mega Guru

Yes, just add the target attribute and it should work, something like this:

<a class="header-menu-item" data-id="live_chat" href="[url_for_live_chat_link]" target="_blank">Live Chat</a>