forked from MirrorHub/synapse
Avoid redundant URL encoding (#4555)
* Do not double encode fallback redirect URL Signed-off-by: Marcel Fabian Krüger <zauguin@gmail.com>
This commit is contained in:
parent
43c707a010
commit
9f5d206c4a
1
changelog.d/4555.bugfix
Normal file
1
changelog.d/4555.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Avoid redundant URL encoding of redirect URL for SSO login in the fallback login page. Fixes a regression introduced in [#4220](https://github.com/matrix-org/synapse/pull/4220). Contributed by Marcel Fabian Krüger ("[zaugin](https://github.com/zauguin)").
|
|
@ -49,7 +49,7 @@ var show_login = function() {
|
||||||
$("#loading").hide();
|
$("#loading").hide();
|
||||||
|
|
||||||
var this_page = window.location.origin + window.location.pathname;
|
var this_page = window.location.origin + window.location.pathname;
|
||||||
$("#sso_redirect_url").val(encodeURIComponent(this_page));
|
$("#sso_redirect_url").val(this_page);
|
||||||
|
|
||||||
if (matrixLogin.serverAcceptsPassword) {
|
if (matrixLogin.serverAcceptsPassword) {
|
||||||
$("#password_flow").show();
|
$("#password_flow").show();
|
||||||
|
|
Loading…
Reference in a new issue