I’m using the Supabase email invite process where the user will be directed to my app: [domainname].com/invite and they’ll enter a password and create a profile.
Everything works until the user lands on the page, then is redirected to the project base domain with ‘/404/’ added.
Thanks for the super clear question and explanations.
The fact that the user is redirected to the 404 page suggests the link is referencing a page that does not exist. Maybe this is due to a redirection that’s missing.
Have you tried linking to www.[domainname].com/invite in the email instead of [domainname].com/invite?
I’ve temporarily solved this by adding a workflow to the login page that retrieves the current user and if they’re accepted the terms and conditions. If they haven’t, they’re routed to the change password page.
It’s only a temporary solution because:
Users could received the link AND not accepted the T&Cs, then are routed to the change password page.
I’m worried the change password process will require another fix. If users are always redirected to the Login page, I can’t send them to change password page, which requires an additional workflow…
I’ll keep this open since I wouldn’t consider this a solution. Would love to hear other ideas!
I’ve seen that this could be a problem of how SPAs manage this type of redirection from the Supabase invite template. Not sure what could be the solution, I’m having the same issue.