fix: netlify doesn't seem to handle redirects in a server action therefor we do the redirect on the client instead
This commit is contained in:
@@ -25,7 +25,10 @@ export default async function SASxScandicLinkPage({
|
||||
console.log("updating date of birth")
|
||||
}
|
||||
|
||||
redirect(`/${params.lang}/sas-x-scandic/login?intent=link`)
|
||||
return {
|
||||
redirectUrl: `/${params.lang}/sas-x-scandic/login?intent=link`,
|
||||
success: true,
|
||||
}
|
||||
}
|
||||
|
||||
return alreadyLinked ? (
|
||||
|
||||
Reference in New Issue
Block a user