From 46f2121a38dceec9f447869c2c541de1d0356cbb Mon Sep 17 00:00:00 2001 From: mythilytm Date: Mon, 11 Sep 2023 12:17:58 -0400 Subject: [PATCH] webchat: replace window location on quick exit --- webchat/src/aselo-webchat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webchat/src/aselo-webchat.tsx b/webchat/src/aselo-webchat.tsx index 67a4b3d67d..49b0fa1b13 100644 --- a/webchat/src/aselo-webchat.tsx +++ b/webchat/src/aselo-webchat.tsx @@ -207,7 +207,7 @@ export const initWebchat = async () => { FlexWebChat.Actions.addListener('afterRestartEngagement', (payload) => { if (payload.exit) { - setTimeout(() => window.open('https://google.com', '_self'), 1000); + setTimeout(() => window.location.replace('https://google.com'), 1000); } });