diff --git a/ios/Classes/TiWebdialogModule.m b/ios/Classes/TiWebdialogModule.m index d237fba..a723010 100644 --- a/ios/Classes/TiWebdialogModule.m +++ b/ios/Classes/TiWebdialogModule.m @@ -58,7 +58,9 @@ - (void)safariViewControllerDidFinish:(SFSafariViewController *)controller - (SFSafariViewController *)safariController:(NSString *)url withEntersReaderIfAvailable:(BOOL)entersReaderIfAvailable andBarCollapsingEnabled:(BOOL)barCollapsingEnabled { if (_safariController == nil) { - NSString *encodedURL = [url stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLQueryAllowedCharacterSet]; + NSMutableCharacterSet *allowedCharacters = [[NSCharacterSet URLQueryAllowedCharacterSet] mutableCopy]; + [allowedCharacters addCharactersInString:@"#"]; // https://github.com/tidev/titanium-web-dialog/issues/329 + NSString *encodedURL = [url stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters]; NSURL *safariURL = [NSURL URLWithString:encodedURL]; SFSafariViewControllerConfiguration *config = [[SFSafariViewControllerConfiguration alloc] init]; diff --git a/ios/manifest b/ios/manifest index 57a9912..9509e88 100644 --- a/ios/manifest +++ b/ios/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 4.0.0 +version: 4.0.1 apiversion: 2 architectures: arm64 x86_64 description: titanium-web-dialog