-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.2.0
-
-
MOODLE_402_STABLE
-
Moodle Apps Sprint 2025-I1.4, Moodle Apps Sprint 2025-I2.2
The behaviour changes depending on the OS, whether it's an online iframe or a local iframe, and whether it's a clicked link or a window.open. Maybe we want to make it more consistent.
Local iframe (points to local file)
Same behaviour in iOS and Android:
- External links: opened in browser, not in app.
- window.open: opens link in app if needed.
The logic is handled in CoreIframeUtilsProvider.treatFrame.
Online iframe (points to http...)
- Android
- Same behaviour for external links and window.open: opens link in app if needed.
- iOS
- External links: opened in browser, not in app.
- window.open: opens link in app if needed.
In Android, the logic is handled in onOverrideUrlLoading.
In iOS, the logic is handled in iframe-treat-links.js.