modular icon indicating copy to clipboard operation
modular copied to clipboard

Wrong Route name in Flutter Web

Open GabrielCR99 opened this issue 5 years ago • 11 comments

Hi there! So, me and my team have a project in Flutter Web using flutter_modular 3.4.1+1. Recently, we've discovered that, whenever you change screen (using pushNamed, navigate, pushNamedAndRemoveUntil and so on), the URL doesn't start with the ModuleRoute name, it starts with /0 or /1.

Here's an example:

image

image

image

It was supposed to start with the Module name, i.e /register or /password-recovery, not /0 or /1. This happens with other modules too:

image

image

image

GabrielCR99 avatar Aug 26 '21 13:08 GabrielCR99

I found the same problem

Nanow avatar Aug 31 '21 18:08 Nanow

I found the same problem

Yeah, this is actually pretty annoying. I think that it happens with pushNamed only in Flutter Web, not sure at all, me and my team are now using navigate, and it seems to be a temporary fix (again, not sure) :/

GabrielCR99 avatar Aug 31 '21 18:08 GabrielCR99

i got same problem.. hope this issue fix soon

komangnopha avatar Sep 01 '21 07:09 komangnopha

I just created the same issue (https://github.com/Flutterando/modular/issues/518) With the difference that in my case navigate method updates the route url properly and my issue is only with push like routing.

og1-alarm avatar Sep 01 '21 08:09 og1-alarm

@GabrielCR99 same issue

marciovalim avatar Sep 02 '21 14:09 marciovalim

any update?

marciovalim avatar Sep 09 '21 11:09 marciovalim

any update to this issue?

darvdev avatar Sep 15 '21 12:09 darvdev

any update to this issue?

LucasMdosAnjos avatar Sep 16 '21 22:09 LucasMdosAnjos

@jacobaraujo7 save us :(

GabrielCR99 avatar Sep 17 '21 01:09 GabrielCR99

Check v4.0.0-dev.3

jacobaraujo7 avatar Sep 17 '21 03:09 jacobaraujo7

The new version of Modular has been killed this issue, I guess.

jacobaraujo7 avatar Sep 19 '21 07:09 jacobaraujo7