mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 03:33:51 +01:00
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
2 changed files with 2 additions and 1 deletions
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();
|
||||
|
||||
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) {
|
||||
$("#password_flow").show();
|
||||
|
|
Loading…
Reference in a new issue