From 8cfe016ad983063010f0c9c0defa39030e9715d1 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Thu, 14 Sep 2023 18:54:49 +0530 Subject: [PATCH] Fixed: case of generating an authenticated link for oms(#121) --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 883df6a..3c585de 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,5 +1,5 @@ const goToOms = (token: string, oms: string) => { - const link = (oms.startsWith('http') ? oms.replace(/api\/?/, "") : `https://${oms}.hotwax.io/`) + `?token=${token}` + const link = (oms.startsWith('http') ? oms.replace(/api\/?/, "") : `https://${oms}.hotwax.io/`) + `commerce/control/main?token=${token}` window.open(link, '_blank', 'noopener, noreferrer') }