modular icon indicating copy to clipboard operation
modular copied to clipboard

Navigation stack isn't kept when navigating to a nested route

Open joaovirgilicw opened this issue 2 years ago • 0 comments

Describe the bug When navigating to a nested route the stack isn't kept.

To Reproduce Imagine that I have three modules: Home, Settings, and EditProfile. Home has a module route ('/settings/') for Settings Settings has a module route ('/edit_profile/') for EditProfile

Home -> Settings -> EditProfile

If, in Home I call Module.to.pushNamed('/settings/edit_profile') it correctly opens the EditProfile module, but it go back to the Home module when I pop it.

Screenshot 2023-06-05 at 19 40 01 Here you can see that when popping EditProfile, it pops Settings aswell.

Expected behavior Keep the navigation stack. When poppig EditProfile, it should back to Settings isntead of Home

Screenshots

https://github.com/Flutterando/modular/assets/78375092/66f27c30-69b4-4c6f-be55-b6446390c92e

joaovirgilicw avatar Jun 05 '23 23:06 joaovirgilicw