How to use deep links, not replacing all currently opened routes

Hi there,
I enabled deep linking in 'app settings' / 'routing and deep linking'.
The pages are NOT subroutes of root page.

The expected behavior is: push the route above the existing ones, if any (because app is already open).


Yet it seems like a deep link is always replacing all current routes.

bool result = GoRouter.of(context).canPop();

In the back button onPressed function, the canPop() always returns false.

How to use a deep link, and not lose the current navigation stack, and filled text fields?

1
1 reply