Skip to content

Commit

Permalink
Merge pull request #164 from ymaheshwari1/dxp-components/#121
Browse files Browse the repository at this point in the history
Fixed: case of generating an authenticated link for oms(#121)
  • Loading branch information
ravilodhi authored Sep 15, 2023
2 parents 356505c + 8cfe016 commit 114f2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -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')
}
Expand Down

0 comments on commit 114f2a2

Please sign in to comment.