diff --git a/Config/BuildSettings.swift b/Config/BuildSettings.swift index 71b2f7640..5d815f7e6 100644 --- a/Config/BuildSettings.swift +++ b/Config/BuildSettings.swift @@ -55,7 +55,7 @@ final class BuildSettings: NSObject { "app.element.io": [], "staging.element.io": [], "develop.element.io": [], - "mobile.element.io": ["/config/config"], + "mobile.element.io": [], // Historical ones "riot.im": ["/app", "/staging", "/develop"], "www.riot.im": ["/app", "/staging", "/develop"], diff --git a/Riot/AppDelegate.m b/Riot/AppDelegate.m index def11b3b6..0b2ba08d0 100644 --- a/Riot/AppDelegate.m +++ b/Riot/AppDelegate.m @@ -1229,7 +1229,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni [[NSNotificationCenter defaultCenter] postNotificationName:AppDelegateUniversalLinkDidChangeNotification object:nil]; } - if ([webURL.path hasPrefix:@"/config"]) + if ([webURL.path length] == 0) { return [self handleServerProvionningLink:webURL]; } @@ -1772,7 +1772,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni - (void)parseServerProvionningLink:(NSURL*)link homeserver:(NSString**)homeserver identityServer:(NSString**)identityServer { - if ([link.path isEqualToString:@"/config/config"]) + if ([link.path length] == 0) { NSURLComponents *linkURLComponents = [NSURLComponents componentsWithURL:link resolvingAgainstBaseURL:NO]; for (NSURLQueryItem *item in linkURLComponents.queryItems)