Skip to content

Commit

Permalink
fix bug: 通知消息打开白屏
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Oct 18, 2023
1 parent 004c0da commit 29c5576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/endpoints/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const authorize = async (req: Request, res: Response) => {
let redirect_uri = req.query.redirect_uri ? req.query.redirect_uri as string : '/'
if (user) {
if (redirect_uri.indexOf('no_redirect=1') < 0) {
redirect_uri = redirect_uri.indexOf("?") > 0 ? redirect_uri + 'no_redirect=1' : redirect_uri + '?no_redirect=1';
redirect_uri = redirect_uri.indexOf("?") > 0 ? redirect_uri + '&no_redirect=1' : redirect_uri + '?no_redirect=1';
res.redirect(redirect_uri);
}
res.end();
Expand Down

0 comments on commit 29c5576

Please sign in to comment.