Skip to content

[BUG] Router.NavigateBack seems to be broken in some cases #2286

@andrejpanjan

Description

@andrejpanjan

Describe the bug
It look likes that Router.NavigateBack doesn't work as expected in some cases on Xamarin Forms, while the same code works perfectly on WPF.

Steps To Reproduce

Use attached Test.
Test.zip

  1. Tap Check Out on the Main Page.
  2. Tap Save on the CheckOut page.
  3. Tap Save on the Production page.
  4. It should return to Main Page, but it doesn't. Also Router.NavigationStack and NavigationPage.Navigation.NavigationStack are not synchronized anymore.

Expected behavior
It should return to the Main Page when Save is tapped on the Production page.

Environment

  • OS: Android, Xamarin Forms
  • Version: 10
  • Device: Pixel 2

Additional context
May be related to #2040

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions