mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
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>
This commit is contained in:
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…
x
Reference in New Issue
Block a user