Force Shell navigation to replace the navigation stack
Petr Pikaus
10
Reputation points
I have a ShellContent
which uses DataTemplateSelector
to dynamically select a page to display. Sadly, when I call Shell.Current.GoToAsync
with the URI that's active right now (or its child route), it does nothing (or navigates back in the case of the child route) there's no parameter to control this behavior that I'm aware of. Based on the documentation, navigating to //some-uri
should replace the navigation stack, but that does not happen.
Developer technologies | .NET | .NET MAUI
4,171 questions
Sign in to answer