We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dc164d commit 6f8d1adCopy full SHA for 6f8d1ad
android/capacitor/src/main/java/com/getcapacitor/Bridge.java
@@ -369,7 +369,11 @@ public boolean launchIntent(Uri url) {
369
}
370
371
372
- if (!url.toString().startsWith(appUrl) && !appAllowNavigationMask.matches(url.getHost())) {
+ Uri appUri = Uri.parse(appUrl);
373
+ if (
374
+ !(url.getHost().equals(appUri.getHost()) && url.getScheme().equals(appUri.getScheme())) &&
375
+ !appAllowNavigationMask.matches(url.getHost())
376
+ ) {
377
try {
378
Intent openIntent = new Intent(Intent.ACTION_VIEW, url);
379
getContext().startActivity(openIntent);
0 commit comments