I have:
<ShellItem Route="MainPage" Shell.FlyoutBehavior="Disabled" FlyoutItemIsVisible="False">
<ShellContent ContentTemplate="{DataTemplate local:MainPage}" />
</ShellItem>
<FlyoutItem Route="Main" FlyoutDisplayOptions="AsMultipleItems" IsTabStop="False">
....
</FlyoutItem>
AppShell:
Routing.RegisterRoute("Register", typeof(RegisterPage));
Routing.RegisterRoute("Login", typeof(LoginPage));
MainPageViewModel (local:MainPage):
await Shell.Current.GoToAsync("Login");
await Shell.Current.GoToAsync("Register");
Logout in FlyoutItem Route="Main":
Shell.Current.GoToAsync("///MainPage");
the problem is that when I login and then close it, the page displayed is the LoginPage and not MainPage