dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.97k stars 1.72k forks source link

Shell Navigation will not re-route to the same route even if querystring is different #16442

Open edgiardina opened 1 year ago

edgiardina commented 1 year ago

Description

If shell is on a certain subpage route in a project with a tabbar, and I want to navigate to the same route, but with different querystring values, the navigation will not happen because Shell thinks we are already on that route. Example:

I am on route //mainpage/subpage?pageId=1

in that page, I request navigation to //mainpage/subpage?pageId=2

The new page is not loaded, no navigation changes, etc.

I think this is a fundamental shell bug and not a bug in the individual implementations per platform

Steps to Reproduce

See attached repro project

Link to public reproduction project repository

https://github.com/edgiardina/MauiBug_ShellNav_SamePage

Version with bug

7.0.86

Last version that worked well

Unknown/Other

Affected platforms

iOS, Windows

Affected platform versions

Windows 11, iOS 16.4

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0. Repro on Windows 11, Android 13.0-API33 and iOS 16.4 .NET 8 with below Project: MauiBug_ShellNav_SamePage-master.zip Navigation