@@ -664,7 +664,7 @@ - (void) setBlackListURLRegex:(NSArray<NSString*>*)blackListURLs {
664664}
665665
666666- (BOOL )handleDeepLink : (NSURL *)url {
667- return [self handleDeepLink: url fromSelf: NO ];
667+ return [self handleDeepLink: url fromSelf: YES ];
668668}
669669
670670-(BOOL )handleDeepLinkWithNewSession : (NSURL *)url {
@@ -1777,23 +1777,23 @@ - (NSString *)longUrlWithBaseUrl:(NSString *)baseUrl
17771777 NSMutableString *longUrl = [[NSMutableString alloc ] initWithFormat: @" %@ ?" , baseUrl];
17781778
17791779 for (NSString *tag in tags) {
1780- [longUrl appendFormat: @" tags=%@ &" , tag];
1780+ [longUrl appendFormat: @" tags=%@ &" , [BNCEncodingUtils stringByPercentEncodingStringForQuery: tag] ];
17811781 }
17821782
17831783 if ([alias length ]) {
1784- [longUrl appendFormat: @" alias=%@ &" , alias];
1784+ [longUrl appendFormat: @" alias=%@ &" , [BNCEncodingUtils stringByPercentEncodingStringForQuery: alias] ];
17851785 }
17861786
17871787 if ([channel length ]) {
1788- [longUrl appendFormat: @" channel=%@ &" , channel];
1788+ [longUrl appendFormat: @" channel=%@ &" , [BNCEncodingUtils stringByPercentEncodingStringForQuery: channel] ];
17891789 }
17901790
17911791 if ([feature length ]) {
1792- [longUrl appendFormat: @" feature=%@ &" , feature];
1792+ [longUrl appendFormat: @" feature=%@ &" , [BNCEncodingUtils stringByPercentEncodingStringForQuery: feature] ];
17931793 }
17941794
17951795 if ([stage length ]) {
1796- [longUrl appendFormat: @" stage=%@ &" , stage];
1796+ [longUrl appendFormat: @" stage=%@ &" , [BNCEncodingUtils stringByPercentEncodingStringForQuery: stage] ];
17971797 }
17981798 if (type) {
17991799 [longUrl appendFormat: @" type=%ld &" , (long )type];
0 commit comments