fix(core): redirect to old page after login via 404 page (#8588)

fix AF-1487

When visit a cloud worskapce page without login, we should allow the user to redirect back to that page after login.

The logic is only added for this case, including login with email magin link + google login. Login with password is already working without changes.
This commit is contained in:
pengx17 committed 2024-10-25 03:43:00 +00:00
1 parent 08319bc560
commit 8f694aceb7
13 files changed
+135 -35

No files matched your search

@@ -111,7 +111,6 @@ export class OAuthController {
await this.auth.setCookies(req, res, user.id);
res.send({
id: user.id,
/* @deprecated */
redirectUri: state.redirectUri,
});
}