summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJacek Kolasa <jacek.kolasa@gmail.com>2019-09-17 11:18:49 +0200
committerGitHub <noreply@github.com>2019-09-17 11:18:49 +0200
commit2b8bb23b95efbff23abbd3fcc4b379c306da37d3 (patch)
tree91aec805375b76ed57614de83b03aa0906732c23 /web
parent4663f4751b4083696bcdcbee4da0474feeaba019 (diff)
changed naming for redirect_uri param (#6663)
* naming changes for redirect to the console after sign-in from nodes-view click: redirectUrl > redirect_uri in query params for cloud sign-in call redirectUrl > redirectUri in response object from iframe's window.parent.postMessage * redirectUri => redirectURI from cloud's `postMessage`
Diffstat (limited to 'web')
-rw-r--r--web/gui/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/gui/main.js b/web/gui/main.js
index fa7b4bedc7..1f941d47b8 100644
--- a/web/gui/main.js
+++ b/web/gui/main.js
@@ -725,7 +725,7 @@ function openAuthenticatedUrl(url) {
if (isSignedIn()) {
window.open(url);
} else {
- window.open(`${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&name=${encodeURIComponent(NETDATA.registry.hostname)}&origin=${encodeURIComponent(window.location.origin + "/")}&redirectUrl=${encodeURIComponent(window.location.origin + "/" + url)}`);
+ window.open(`${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&name=${encodeURIComponent(NETDATA.registry.hostname)}&origin=${encodeURIComponent(window.location.origin + "/")}&redirect_uri=${encodeURIComponent(window.location.origin + "/" + url)}`);
}
}
@@ -4955,8 +4955,8 @@ function handleSignInMessage(e) {
cloudToken = e.data.token;
netdataRegistryCallback(registryAgents);
- if (e.data.redirectUrl) {
- window.location.replace(e.data.redirectUrl);
+ if (e.data.redirectURI) {
+ window.location.replace(e.data.redirectURI);
}
}