The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
GoRouterState(
location: loc,
// trim the query params off the subloc to match route.redirect
subloc: Uri.parse(loc).path,
params: Uri.parse(loc).queryParameters,
),
I wanted to change the redirection in params, but params was always empty.
https://github.com/csells/go_router/blob/8b0c70d8b9bece90f84bd4e2f52a5b3094419668/lib/src/go_router_impl.dart#L287-L296
Could you consider adding params? like this.