diff --git a/android/capacitor/src/main/java/com/getcapacitor/Bridge.java b/android/capacitor/src/main/java/com/getcapacitor/Bridge.java index eed3e9a5c5..532afadb6e 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/Bridge.java +++ b/android/capacitor/src/main/java/com/getcapacitor/Bridge.java @@ -383,7 +383,7 @@ public boolean launchIntent(Uri url) { Uri appUri = Uri.parse(appUrl); if ( - !(url.getHost().equals(appUri.getHost()) && url.getScheme().equals(appUri.getScheme())) && + !(appUri.getHost().equals(url.getHost()) && url.getScheme().equals(appUri.getScheme())) && !appAllowNavigationMask.matches(url.getHost()) ) { try {