Skip to content

[Shell][iOS] Page Title is wrong when navigating #14434

@haavamoa

Description

@haavamoa

Description

When I use a Shell architecture and navigate between pages, the page you navigated from changes Title to the page you navigate to. This can be observed by looking at the "back title" in the navigation bar. The title changes from the page you navigated from, to the title of the page you navigated to. When you navigate back to the first page, you can see that the page changes the titles as well.

Here is a video:

Simulator.Screen.Recording.-.iPhone.14.-.2023-04-06.at.11.52.49.mp4

Steps to Reproduce

  1. Create a File-> New -> Dotnet MAUI app
  2. Change the default button from the templates code behind to this:
    Shell.Current.Navigation.PushAsync(new ContentPage(){Title = "Second", Content = new Label() {Text = "Hello world"}});
  3. Start the app on iOS device or simulator
  4. Tap the button
  5. Observe the title changes in the navigation bar and the title of the main page.

Link to public reproduction project repository

https://github.com/haavamoa/MauiApp/tree/bug/navTitle

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.4, iOS 14.2

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions