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:
Joakim Jäderberg
2025-02-06 09:54:52 +00:00
parent 8ecaac4b52
commit c21d7bec62
4 changed files with 21 additions and 6 deletions

View File

@@ -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 ? (