After submitting the form the external link to the newsletter confirmation page should open and it working as expected in local but in production, it is redirecting to siteUrl/undefined
<form
action={`${revueConfigValue}`}
method="post"
id="revue-form"
name="revue-form"
target="_blank"
>
<Flex gap={2} justifyContent={"center"} alignItems={"center"}>
<Box>
<Input
width={"100%"}
variant={"solid"}
borderWidth={1}
color={"gray.800"}
_placeholder={{
color: "gray.400",
}}
borderColor={useColorModeValue("gray.300", "gray.700")}
id="member_email"
name="member[email]"
type={"email"}
required
placeholder={"Your Email"}
aria-label={"Your Email"}
value={email}
onChange={(e: ChangeEvent<HTMLInputElement>) =>
setEmail(e.target.value)
}
/>
</Box>
<Box>
<Button
type="submit"
value="Subscribe"
name="member[subscribe]"
id="member_submit"
>
Submit
</Button>
</Box>
</Flex>
</form>
It can be something silly I might be missing or silly, I don't know and couldn't find any solution for searching for a while any help would be appreciated! In am using revue newsletter if that matters.