dont redirect when redirectURI is the same (#6868)
Jacek Kolasa committed
Sep 17, 2019 at 12:23 UTC
cd5c8c00dac712554c33c959b6891f87175d452b
1 file changed
+1
-1
web/gui/main.js
+1
-1
@@ -4955,7 +4955,7 @@ function handleSignInMessage(e) {
4955
cloudToken = e.data.token;
4956
4957
netdataRegistryCallback(registryAgents);
4958
- if (e.data.redirectURI) {
4958
+ if (e.data.redirectURI && !window.location.href.includes(e.data.redirectURI)) {
4959
window.location.replace(e.data.redirectURI);
4960
}
4961
}