Skip to content
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

Merged
merged 6 commits into from
Jun 5, 2023

Conversation

HarshShahDev
Copy link
Contributor

Thank you Redirect based on Form hidden field

@HarshShahDev HarshShahDev added the feature New feature or request label Jun 5, 2023
@HarshShahDev HarshShahDev self-assigned this Jun 5, 2023
@vercel
Copy link

vercel bot commented Jun 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fz-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 11:14am
fz-webapp 🛑 Canceled (Inspect) Jun 5, 2023 11:14am
fz-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 11:14am

@@ -84,6 +84,7 @@ export async function POST(
let isSpam = false;
const customSpamWords = formData?.customSpamWords;
const customHoneypot = formData?.customHoneypot;
let redirectURl = formData.redirectUrl;
Copy link
Member

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"];
Copy link
Member

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)) {
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@Thirunavukkarasu Thirunavukkarasu merged commit 734265e into development Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Thank you Redirect based on Form hidden field
2 participants