When someone accesses a job post via a link, the expected behavior is:
-
If the user is not logged in, redirect them to the login page, while preserving the original destination (example:
redirect=/complete-post-candidates-apply/210). -
If the user already has an account, they log in normally, after login, they must be redirected back to the job post, not to their profile.
-
If the user doesn’t have an account, there should be a “Create account” button on the login page that leads to the signup page (aleready implemented), keeping the same
redirectparameter. After signup, the user should be authenticated and redirected to the job post. -
The number
210is dynamic, it represents thejob_post_id(it changes depending on the job). -
Implementation: The redirect logic is handled on the frontend (WeWeb). The backend (Xano) only needs to provide the login/signup endpoints that return the user token and data — all post-login navigation is managed by the WeWeb app.
Has anyone implemented this with weweb and xano?