diff --git a/src/matrix/login/SSOLoginHelper.ts b/src/matrix/login/SSOLoginHelper.ts index 0fe3d6b8..1d2dc7d0 100644 --- a/src/matrix/login/SSOLoginHelper.ts +++ b/src/matrix/login/SSOLoginHelper.ts @@ -24,6 +24,6 @@ export class SSOLoginHelper{ get homeserver(): string { return this._homeserver; } 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)}`; } }