diff --git a/lib/router/router.dart b/lib/router/router.dart index 9ca83d0d2..edf52e850 100644 --- a/lib/router/router.dart +++ b/lib/router/router.dart @@ -169,9 +169,9 @@ class RoutesPath { ], ), ], - redirect: (context, state) { - if (deeplinkRpcReceiver.canHandle(state.name)) { - deeplinkRpcReceiver.handle(state.name); + redirect: (context, state) async { + if (deeplinkRpcReceiver.canHandle(state.matchedLocation)) { + await deeplinkRpcReceiver.handle(state.matchedLocation); } return null; },