Mail opens the provider shortcuts by default; the webmail is one button away
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f0df84bc5e
commit
5157e42bc4
4 files changed
+10
-8
No files matched your search
@@ -368,7 +368,7 @@ function proxyWebmail(req, res) {
|
||||
r.resume(); return res.end(`<!doctype html><meta charset=utf-8><meta name=viewport content="width=device-width"><body style="font:16px system-ui;padding:24px;color:#888"><p>Opening the sign-in page… <a href="${a}" target="_top">Continue</a></p><script>try{top.location.href=${j}}catch(e){}</script>`);
|
||||
}
|
||||
if (loc && dest === 'document' && /[?&]state=nux_authorization/.test(req.url)) { // back from Google / Microsoft in the whole window: carry on inside the Mail tab
|
||||
res.writeHead(302, { 'set-cookie': r.headers['set-cookie'] || [], location: '/#/mail', 'cache-control': 'no-store' }); r.resume(); return res.end();
|
||||
res.writeHead(302, { 'set-cookie': r.headers['set-cookie'] || [], location: '/#/mail/webmail', 'cache-control': 'no-store' }); r.resume(); return res.end();
|
||||
}
|
||||
if (loc) { // keep redirects on the hub, under /webmail/ (the webmail thinks it lives at the root)
|
||||
const u = new URL(loc, 'http://' + (req.headers.host || 'hub') + '/');
|
||||
|
||||
Reference in new issue
Block a user