File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,8 @@ 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
+ // Set no_universal_links=true to prevent the callback being handled by Element X installed on macOS Apple Silicon
481
+ url . searchParams . set ( "no_universal_links" , "true" ) ;
480
482
return url ;
481
483
}
482
484
Original file line number Diff line number Diff line change @@ -478,8 +478,6 @@ 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" ) ;
483
481
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
484
482
if ( url . href . startsWith ( `${ url . protocol } //` ) ) {
485
483
url . href = url . href . replace ( "://" , ":/" ) ;
You can’t perform that action at this time.
0 commit comments