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
2024-10-25 03:43:00 +00:00
parent 08319bc560
commit 8f694aceb7
13 changed files with 135 additions and 35 deletions

View File

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