diff --git a/lib/main.dart b/lib/main.dart index ca0445b..3da5d28 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -92,6 +92,15 @@ class DeFlockApp extends StatelessWidget { '/settings/release-notes': (context) => const ReleaseNotesScreen(), }, initialRoute: '/', + onUnknownRoute: (settings) { + // Handle deep link routes that Flutter tries to process before app_links + // This catches routes like "/?id=13939398601" from "deflockapp://node?id=13939398601" + debugPrint('[Navigation] Unknown route intercepted: ${settings.name} (likely deep link, will be handled by DeepLinkService)'); + return MaterialPageRoute( + settings: settings, + builder: (_) => const HomeScreen(), + ); + }, ); }