Skip to content

Commit 82add04

Browse files
committed
MOBILE-3401 core: Fix invalid site URL in iOS when clicking links
This is caused by a bug in InAppBrowser plugin. Even with the IAB fix, the handleOpenURL function is called if there is no app to handle the URL so we'll need this check anyway
1 parent acb4067 commit 82add04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/app.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ export class MoodleMobileApp implements OnInit {
191191
return;
192192
}
193193

194+
if (!this.urlSchemesProvider.isCustomURL(url)) {
195+
// Not a custom URL, ignore.
196+
return;
197+
}
198+
194199
this.logger.debug('App launched by URL ', url);
195200

196201
this.lastUrls[url] = Date.now();

0 commit comments

Comments
 (0)