Skip to content

Commit

Permalink
fix(n8n Form Node): Redirect if completion page to trigger (#11822)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored Nov 21, 2024
1 parent b89ca9d commit 1a8fb7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nodes-base/nodes/Form/Form.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ export class Form extends Node {
delete staticData[id];

if (config.redirectUrl) {
res.redirect(config.redirectUrl);
res.send(
`<html><head><meta http-equiv="refresh" content="0; url=${config.redirectUrl}"></head></html>`,
);
return { noWebhookResponse: true };
}

Expand Down

0 comments on commit 1a8fb7b

Please sign in to comment.