-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 🎨 Thank you Redirect based on Form hidden field #331
Conversation
Thank you Redirect based on Form hidden field
…into spamfilterFix
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -84,6 +84,7 @@ export async function POST( | |||
let isSpam = false; | |||
const customSpamWords = formData?.customSpamWords; | |||
const customHoneypot = formData?.customHoneypot; | |||
let redirectURl = formData.redirectUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix this URl keep single case in mind. Url or URL?
@@ -97,6 +98,9 @@ export async function POST( | |||
if ("_honeypot" in formFields) { | |||
isSpam = await honeypot(formFields); | |||
} | |||
if ("_redirect" in formFields) { | |||
redirectURl = formFields["_redirect"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -135,13 +139,13 @@ export async function POST( | |||
} | |||
|
|||
try { | |||
if (isEmpty(formData?.redirectUrl)) { | |||
if (isEmpty(redirectURl)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Thank you Redirect based on Form hidden field