mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Merge pull request #911 from Automattic/fix-sso-redirect-url
Encode SSO redirect URL as it may contain multiple query parameters
This commit is contained in:
commit
c199d457e6
@ -24,6 +24,6 @@ export class SSOLoginHelper{
|
|||||||
get homeserver(): string { return this._homeserver; }
|
get homeserver(): string { return this._homeserver; }
|
||||||
|
|
||||||
createSSORedirectURL(returnURL: string): string {
|
createSSORedirectURL(returnURL: string): string {
|
||||||
return `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${returnURL}`;
|
return `${this._homeserver}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(returnURL)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user