fix(n8n Form Node): Redirection update (no-changelog) (#13104)

Co-authored-by: Dana <152518854+dana-gill@users.noreply.github.com>
This commit is contained in:
Michael Kret
2025-02-19 14:59:38 +02:00
committed by GitHub
parent 60ff82f648
commit 755734d349
15 changed files with 288 additions and 131 deletions

View File

@@ -243,7 +243,7 @@ export class Form extends Node {
{
name: 'default',
httpMethod: 'POST',
responseMode: 'onReceived',
responseMode: 'responseNode',
path: '',
restartWebhook: true,
isFullPath: true,
@@ -384,6 +384,13 @@ export class Form extends Node {
const waitTill = configureWaitTillDate(context, 'root');
await context.putExecutionToWait(waitTill);
context.sendResponse({
headers: {
location: context.evaluateExpression('{{ $execution.resumeFormUrl }}', 0),
},
statusCode: 307,
});
return [context.getInputData()];
}
}