File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,6 @@ export default abstract class BasePlatform {
477
477
// The redirect URL has to exactly match that registered at the OIDC server, so
478
478
// ensure that the fragment part of the URL is empty.
479
479
url . hash = "" ;
480
- url . searchParams . set ( "no_universal_links" , "true" ) ;
481
480
return url ;
482
481
}
483
482
Original file line number Diff line number Diff line change @@ -478,6 +478,8 @@ export default class ElectronPlatform extends BasePlatform {
478
478
public getOidcCallbackUrl ( ) : URL {
479
479
const url = super . getOidcCallbackUrl ( ) ;
480
480
url . protocol = "io.element.desktop" ;
481
+ // Set no_universal_links=true to prevent the callback being handled by Element X installed on macOS Apple Silicon
482
+ url . searchParams . set ( "no_universal_links" , "true" ) ;
481
483
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
482
484
if ( url . href . startsWith ( `${ url . protocol } //` ) ) {
483
485
url . href = url . href . replace ( "://" , ":/" ) ;
You can’t perform that action at this time.
0 commit comments