Skip to content

Commit

Permalink
fix(engine): 🐛 Redirect new tab backward
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 1, 2022
1 parent 3592321 commit 9f58260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bot-engine/src/services/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

4 comments on commit 9f58260

@vercel
Copy link

@vercel vercel bot commented on 9f58260 Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 9f58260 Jun 1, 2022

@vercel
Copy link

@vercel vercel bot commented on 9f58260 Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 9f58260 Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.