From cd5c8c00dac712554c33c959b6891f87175d452b Mon Sep 17 00:00:00 2001 From: Jacek Kolasa Date: Tue, 17 Sep 2019 12:23:53 +0200 Subject: dont redirect when redirectURI is the same (#6868) --- web/gui/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') 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); } } -- cgit v1.2.3