2
0

fix(engine): 🐛 Redirect new tab backward

This commit is contained in:
Baptiste Arnaud
2022-06-01 16:26:07 +02:00
parent 35923215b9
commit 9f582606a7

View File

@ -129,7 +129,7 @@ const executeRedirect = (
const formattedUrl = sanitizeUrl(parseVariables(variables)(step.options.url))
const isEmbedded = window.parent && window.location !== window.top?.location
if (isEmbedded) {
if (step.options.isNewTab)
if (!step.options.isNewTab)
return ((window.top as Window).location.href = formattedUrl)
try {