mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-06-29 17:49:59 +02:00
silence useless deeplink exception
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
},
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user