Use inAppBrowserView instead of externalApplication

This is probably the reason why some issues have no content
This commit is contained in:
Roland Geider
2026-12-02 13:44:44 +01:00
parent 0d47c253fc
commit 03efd1c28c
2 changed files with 6 additions and 2 deletions

View File

@@ -264,7 +264,9 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext
final Uri reportUri = Uri.parse(githubIssueUrl);
try {
await launchUrl(reportUri, mode: LaunchMode.externalApplication);
// Not externalApplication: github.com is a verified App Link of the
// GitHub app, which drops the template and description (#1437)
await launchUrl(reportUri, mode: LaunchMode.inAppBrowserView);
} catch (e) {
if (kDebugMode) {
logger.warning('Error launching URL: $e');

View File

@@ -279,7 +279,9 @@ class SyncStatusDialog extends ConsumerWidget {
serverVersion: ref.read(authProvider).value?.serverVersion,
);
try {
await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
// Not externalApplication: github.com is a verified App Link of the
// GitHub app, which drops the template and description
await launchUrl(Uri.parse(url), mode: LaunchMode.inAppBrowserView);
} catch (e, s) {
_logger.warning('Error opening issue tracker', e, s);
}