Skip to content

Commit c929eed

Browse files
authored
Fix getOidcCallbackUrl for Element Desktop (#29711)
Signed-off-by: Michael Telatynski <[email protected]>
1 parent bcd396e commit c929eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector/platform/ElectronPlatform.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ export default class ElectronPlatform extends BasePlatform {
479479
const url = super.getOidcCallbackUrl();
480480
url.protocol = "io.element.desktop";
481481
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
482-
if (url.href.startsWith(`${url.protocol}://`)) {
482+
if (url.href.startsWith(`${url.protocol}//`)) {
483483
url.href = url.href.replace("://", ":/");
484484
}
485485
return url;

0 commit comments

Comments
 (0)