How to override Memberstack's default sign-in/sign-up redirects in a custom no-code Webflow project Answered
Hey everyone! Quick question - how would you hard-code a redirect after sign-in/sign-up? I see "Form-level redirects" listed on the Memberstack FAQ page for this, but no explanation on how to override. Seems like it's just defaulting to Memberstack's redirects no matter what I do. Would really appreciate the help, thanks!
Comments
4 comments
Hi Lucas,
If you want to hard code a redirect, the easies way to do it is by setting the default sign-in/sign-up redirect to a (blank) success page, and from there execute your script logic
Thanks Raquel! No way you know of to avoid the blank page and override the logic at the form level? It would be great to get around having to redirect the user twice.
User shouldn't tell the difference, basically the loading would only last a split second more than redirecting once.
If you want to redirect once, then you need to manually handle the logic of the sign up and sign in forms. You can try with redirection attribute in the forms, but if that doesn't work you can use the $memberstackDom signup and sign in methods and after a successful response continue to redirect.
You can manually override signing up by using this method and redirect after the promise resolves https://developers.memberstack.com/docs/dom-front-end-package#signing-up-a-member-using-email-and-password
Ah, I hadn’t come across these dev docs when researching! Thanks so much for the insight Raquel!
Please sign in to leave a comment.