We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71cc397 commit 29319feCopy full SHA for 29319fe
custom_components/openid/authorize.js
@@ -52,8 +52,7 @@ function redirect_openid_login() {
52
const urlParams = new URLSearchParams(window.location.search);
53
const clientId = encodeURIComponent(urlParams.get('client_id'));
54
const redirectUri = encodeURIComponent(urlParams.get('redirect_uri'));
55
- const baseUrl = window.location.origin;
+ const baseUrl = encodeURIComponent(window.location.origin);
56
57
- const encodedUrl = encodeURIComponent(`/auth/openid/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&base_url=${baseUrl}`);
58
- window.location.href = decodeURIComponent(encodedUrl);
+ window.location.href = `/auth/openid/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&base_url=${baseUrl}`;
59
}
0 commit comments