diff options
author | Jacek Kolasa <jacek.kolasa@gmail.com> | 2019-09-17 12:23:53 +0200 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-17 12:23:53 +0200 |
commit | cd5c8c00dac712554c33c959b6891f87175d452b (patch) | |
tree | e1fb047919a849938de97f0233a0b75ac0cec7a4 | |
parent | 4fa3ecf84f4ee3abc425989880688a712ff12b9b (diff) |
dont redirect when redirectURI is the same (#6868)
-rw-r--r-- | web/gui/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/gui/main.js b/web/gui/main.js index 1f941d47b8..0635b07a7e 100644 --- a/web/gui/main.js +++ b/web/gui/main.js @@ -4955,7 +4955,7 @@ function handleSignInMessage(e) { cloudToken = e.data.token; netdataRegistryCallback(registryAgents); - if (e.data.redirectURI) { + if (e.data.redirectURI && !window.location.href.includes(e.data.redirectURI)) { window.location.replace(e.data.redirectURI); } } |