diff --git a/lib/pages/web_view.dart b/lib/pages/web_view.dart index 07a834f..e73b85f 100644 --- a/lib/pages/web_view.dart +++ b/lib/pages/web_view.dart @@ -123,7 +123,7 @@ class WebViewAppState extends ConsumerState { // 1st check if url is not def. app url and open it in a browser or inApp. _setAjaxHeadersJQuery(controller); final url = action.request.url!.origin; - if (!url.startsWith(manifest.baseUrl)) { + if (!url.startsWith(manifest.baseUrl) && action.isForMainFrame) { authBrowser.launchUrl(action.request); return NavigationActionPolicy.CANCEL; }