From ec0b0cb43e06f31ca90edffedc3f6b4895776789 Mon Sep 17 00:00:00 2001 From: Colin Wilkinson Date: Thu, 12 Mar 2020 20:49:00 -0400 Subject: [PATCH] Use current Talk url scheme for identifying lotus tab Zendesk stores the Talk dashboard at the /agent/talk address now, which will not handle ticket and other URL opens, with other Talk integrations directly happening within the agent dashboard on Support. This fixes an issue where browser.js's openRouteInZendesk() could encounter a tab with the Talk dashboard loaded at https://*.zendesk.com/agent/talk and attempt to open the ticket link here, then immediately close the originally opened tab making it appear as though nothing happened when the link was clicked. --- app/javascripts/modules/url_match.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascripts/modules/url_match.js b/app/javascripts/modules/url_match.js index 77551fa..52dba3e 100644 --- a/app/javascripts/modules/url_match.js +++ b/app/javascripts/modules/url_match.js @@ -2,7 +2,7 @@ var browser = require('./browser.js'); var urlMatch = { - LOTUS_ROUTE: /^https?:\/\/(.*).zendesk.com\/agent\/(?!chat|voice)\#?\/?(.*)$/, + LOTUS_ROUTE: /^https?:\/\/(.*).zendesk.com\/agent\/(?!chat|talk)\#?\/?(.*)$/, TICKET_ROUTE: /^https?:\/\/(.*).zendesk.com\/(?:agent\/tickets|tickets|twickets|requests|hc\/requests)\#?\/?(.*)$/, RESTRICTED_ROUTE: /^https?:\/\/(.*).zendesk.com\/(agent\/(chat|talk|admin\/voice)\/?(.*)|tickets\/\d*\/print)/,