client/web: open auth URLs in new browser tab

Open control server auth URLs in new browser tabs on web clients
so users don't loose original client URL when redirected for login.

Updates tailscale/corp#13775

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
marwan/scmem
Sonia Appasamy 9 months ago committed by Sonia Appasamy
parent ad9b711a1b
commit 776f9b5875

@ -104,11 +104,7 @@ export default function useNodeData() {
}
const url = r["url"]
if (url) {
if (data.IsUnraid) {
window.open(url, "_blank")
} else {
document.location.href = url
}
window.open(url, "_blank")
}
fetchNodeData()
})

Loading…
Cancel
Save