From c929eedd817dd80a603e96fb5e210a5d951ba549 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 11 Apr 2025 15:44:22 +0100 Subject: [PATCH] Fix getOidcCallbackUrl for Element Desktop (#29711) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/platform/ElectronPlatform.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 19fa455168..3be158b18d 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -479,7 +479,7 @@ export default class ElectronPlatform extends BasePlatform { const url = super.getOidcCallbackUrl(); url.protocol = "io.element.desktop"; // Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1 - if (url.href.startsWith(`${url.protocol}://`)) { + if (url.href.startsWith(`${url.protocol}//`)) { url.href = url.href.replace("://", ":/"); } return url;