slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
582 stars 128 forks source link

`notFoundRedirectNamed` issue #666

Open busslina opened 1 week ago

busslina commented 1 week ago

This is not a bug, but a bad behaviour IMO.

On a web browser, when routing to an inexistent route, it gets redirected correctly to notFoundRedirectNamed, but the browser url got stuck with the wrong route. Is there a way to get it changed to the notFoundRedirectNamed value?

Thanks

BeamerDelegate(
        initialPath: initialPath,
        notFoundRedirectNamed: initialPath,
        locationBuilder: RoutesLocationBuilder(
          routes: routes,
        ).call,
        setBrowserTabTitle: true,
        guards: guards,
      )