From ac3d67480e84e95fe0d02668c6398655a939e2cb Mon Sep 17 00:00:00 2001 From: Doug Date: Tue, 8 Aug 2023 18:59:29 +0100 Subject: [PATCH] Fix SSO generating invalid URLs. --- Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift b/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift index a0282c7425..706c3782d1 100644 --- a/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift +++ b/Riot/Modules/Authentication/SSO/SSOAuthenticationService.swift @@ -50,7 +50,7 @@ final class SSOAuthenticationService: NSObject { var ssoRedirectPath = SSOURLConstants.Paths.redirect - if let identityProvider = identityProvider { + if let identityProvider = identityProvider, !identityProvider.isEmpty { ssoRedirectPath.append("/\(identityProvider)") }