Skip to content

Shell.CurrentState doesn't match Shell.CurrentPage when Page.NavigatedTo is called using a relative route #29428

@bzd3y

Description

@bzd3y

Description

As the title says. Note, they DO match when a global/ShellContent route is used.

Steps to Reproduce

  1. Clone the reproduction repository https://github.com/bzd3y/ShellNavigation.git
  2. Run the application and wait for it to start
  3. Add a breakpoint at MauiProgram.cs:26
  4. Click the button on "Home"/MainPage. It will navigate to MainPage2
  5. View the values of the variables in the handler method using the debugger
  6. Stop debugging, restart the application and use the ShellContent routes from the flyout menu to see that the values all match

Link to public reproduction project repository

https://github.com/bzd3y/ShellNavigation.git

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyoutpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions