We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7703ec commit 8d7845aCopy full SHA for 8d7845a
CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m
@@ -108,9 +108,11 @@ - (CDVIntentAndNavigationFilterValue) filterUrl:(NSURL*)url
108
109
+ (BOOL)shouldOpenURLRequest:(NSURLRequest*)request navigationType:(CDVWebViewNavigationType)navigationType
110
{
111
+ BOOL isMainNavigation = [[request.mainDocumentURL absoluteString] isEqualToString:[request.URL absoluteString]];
112
+
113
return (
114
navigationType == CDVWebViewNavigationTypeLinkClicked ||
- navigationType == CDVWebViewNavigationTypeLinkOther
115
+ (navigationType == CDVWebViewNavigationTypeLinkOther && isMainNavigation)
116
);
117
}
118
0 commit comments