mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
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:
@@ -18,13 +18,6 @@ export const renderFormCompletion = async (
|
||||
const options = context.getNodeParameter('options', {}) as { formTitle: string };
|
||||
const responseText = context.getNodeParameter('responseText', '') as string;
|
||||
|
||||
if (redirectUrl) {
|
||||
res.send(
|
||||
`<html><head><meta http-equiv="refresh" content="0; url=${redirectUrl}"></head></html>`,
|
||||
);
|
||||
return { noWebhookResponse: true };
|
||||
}
|
||||
|
||||
let title = options.formTitle;
|
||||
if (!title) {
|
||||
title = context.evaluateExpression(`{{ $('${trigger?.name}').params.formTitle }}`) as string;
|
||||
@@ -39,6 +32,7 @@ export const renderFormCompletion = async (
|
||||
formTitle: title,
|
||||
appendAttribution,
|
||||
responseText: sanitizeHtml(responseText),
|
||||
redirectUrl,
|
||||
});
|
||||
|
||||
return { noWebhookResponse: true };
|
||||
|
||||
Reference in New Issue
Block a user