MAUI ambiguous routes matched error on PopAsync()

Im getting error when trying to navigate back from pushed page

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>System.ArgumentException: 'Ambiguous routes matched for: //D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16 matches found: //D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16,//D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16 (Parameter 'uri')'
</code>
<code>System.ArgumentException: 'Ambiguous routes matched for: //D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16 matches found: //D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16,//D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16 (Parameter 'uri')' </code>
System.ArgumentException: 'Ambiguous routes matched for: //D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16 matches found: //D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16,//D_FAULT_TabBar14/IMPL_BooksPage/BooksPage/D_FAULT_ModalReader16 (Parameter 'uri')'

Im using Shell navigation

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code><TabBar
Shell.NavBarIsVisible="False"
Shell.TabBarBackgroundColor="{DynamicResource Background}"
Shell.TabBarForegroundColor="{DynamicResource HighlightedItem}"
Shell.TabBarTitleColor="{DynamicResource HighlightedItem}"
Shell.TabBarUnselectedColor="{DynamicResource DarkerBackground}">
<ShellContent
Title="წიგნები"
ContentTemplate="{DataTemplate pages:BooksPage}"
Icon="open_book.svg"
Route="BooksPage" />
......
</code>
<code><TabBar Shell.NavBarIsVisible="False" Shell.TabBarBackgroundColor="{DynamicResource Background}" Shell.TabBarForegroundColor="{DynamicResource HighlightedItem}" Shell.TabBarTitleColor="{DynamicResource HighlightedItem}" Shell.TabBarUnselectedColor="{DynamicResource DarkerBackground}"> <ShellContent Title="წიგნები" ContentTemplate="{DataTemplate pages:BooksPage}" Icon="open_book.svg" Route="BooksPage" /> ...... </code>
<TabBar
    Shell.NavBarIsVisible="False"
    Shell.TabBarBackgroundColor="{DynamicResource Background}"
    Shell.TabBarForegroundColor="{DynamicResource HighlightedItem}"
    Shell.TabBarTitleColor="{DynamicResource HighlightedItem}"
    Shell.TabBarUnselectedColor="{DynamicResource DarkerBackground}">
    <ShellContent
    Title="წიგნები"
    ContentTemplate="{DataTemplate pages:BooksPage}"
    Icon="open_book.svg"
    Route="BooksPage" />
......

From BooksPage then i go to Reader like this

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>ModalReader mr = new ModalReader(book);
await Shell.Current.Navigation.PushAsync(mr, true);
</code>
<code>ModalReader mr = new ModalReader(book); await Shell.Current.Navigation.PushAsync(mr, true); </code>
ModalReader mr = new ModalReader(book);
await Shell.Current.Navigation.PushAsync(mr, true);

from Reader to Bookmarks

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>BookmarksModal bm = new BookmarksModal(_viewModel.Book?.Title ?? "usaxelo", _viewModel.Sarchevi, (int x) =>
{
Carousel.ScrollTo(x, animate: false);
});
await Shell.Current.Navigation.PushAsync(bm, true);
</code>
<code>BookmarksModal bm = new BookmarksModal(_viewModel.Book?.Title ?? "usaxelo", _viewModel.Sarchevi, (int x) => { Carousel.ScrollTo(x, animate: false); }); await Shell.Current.Navigation.PushAsync(bm, true); </code>
BookmarksModal bm = new BookmarksModal(_viewModel.Book?.Title ?? "usaxelo", _viewModel.Sarchevi, (int x) =>
{
    Carousel.ScrollTo(x, animate: false);
});

await Shell.Current.Navigation.PushAsync(bm, true);

and when i try to pop that one exception is thrown
await Shell.Current.Navigation.PopAsync();
what am i do wrong?

registered routes and dependecies but still same error

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> public AppShell()
{
InitializeComponent();
Routing.RegisterRoute(nameof(Authenticator), typeof(Authenticator));
Routing.RegisterRoute(nameof(MainPage), typeof(MainPage));
Routing.RegisterRoute(nameof(LoginPage), typeof(LoginPage));
Routing.RegisterRoute(nameof(BooksPage), typeof(BooksPage));
//Routing.RegisterRoute(nameof(ReaderPage), typeof(ReaderPage));
//Routing.RegisterRoute(nameof(ProfilePage), typeof(ProfilePage));
//Routing.RegisterRoute("books/modalReader", typeof(ModalReader));
//Routing.RegisterRoute("books/searchPage", typeof(BooksSeachPage));
//Routing.RegisterRoute("books/reader/bookmarks", typeof(BookmarksModal));
//Routing.RegisterRoute("books/reader/font", typeof(FontModal));
}
</code>
<code> public AppShell() { InitializeComponent(); Routing.RegisterRoute(nameof(Authenticator), typeof(Authenticator)); Routing.RegisterRoute(nameof(MainPage), typeof(MainPage)); Routing.RegisterRoute(nameof(LoginPage), typeof(LoginPage)); Routing.RegisterRoute(nameof(BooksPage), typeof(BooksPage)); //Routing.RegisterRoute(nameof(ReaderPage), typeof(ReaderPage)); //Routing.RegisterRoute(nameof(ProfilePage), typeof(ProfilePage)); //Routing.RegisterRoute("books/modalReader", typeof(ModalReader)); //Routing.RegisterRoute("books/searchPage", typeof(BooksSeachPage)); //Routing.RegisterRoute("books/reader/bookmarks", typeof(BookmarksModal)); //Routing.RegisterRoute("books/reader/font", typeof(FontModal)); } </code>
  public AppShell()
  {
      InitializeComponent();

      Routing.RegisterRoute(nameof(Authenticator), typeof(Authenticator));
      Routing.RegisterRoute(nameof(MainPage), typeof(MainPage));
      Routing.RegisterRoute(nameof(LoginPage), typeof(LoginPage));
      Routing.RegisterRoute(nameof(BooksPage), typeof(BooksPage));
      //Routing.RegisterRoute(nameof(ReaderPage), typeof(ReaderPage));
      //Routing.RegisterRoute(nameof(ProfilePage), typeof(ProfilePage));
      //Routing.RegisterRoute("books/modalReader", typeof(ModalReader));
      //Routing.RegisterRoute("books/searchPage", typeof(BooksSeachPage));
      //Routing.RegisterRoute("books/reader/bookmarks", typeof(BookmarksModal));
      //Routing.RegisterRoute("books/reader/font", typeof(FontModal));
  }
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>builder.Services.AddTransient<SessionManagement>();
builder.Services.AddSingleton<MainPage>();
builder.Services.AddSingleton<Authenticator>();
builder.Services.AddSingleton<LoginPage>();
builder.Services.AddSingleton<BooksPage>();
//builder.Services.AddTransient<ReaderPage>();
//builder.Services.AddTransient<ProfilePage>();
//builder.Services.AddTransient<ModalReader>();
//builder.Services.AddTransient<BookmarksModal>();
//builder.Services.AddTransient<FontModal>();
</code>
<code>builder.Services.AddTransient<SessionManagement>(); builder.Services.AddSingleton<MainPage>(); builder.Services.AddSingleton<Authenticator>(); builder.Services.AddSingleton<LoginPage>(); builder.Services.AddSingleton<BooksPage>(); //builder.Services.AddTransient<ReaderPage>(); //builder.Services.AddTransient<ProfilePage>(); //builder.Services.AddTransient<ModalReader>(); //builder.Services.AddTransient<BookmarksModal>(); //builder.Services.AddTransient<FontModal>(); </code>
builder.Services.AddTransient<SessionManagement>();

builder.Services.AddSingleton<MainPage>();
builder.Services.AddSingleton<Authenticator>();
builder.Services.AddSingleton<LoginPage>();
builder.Services.AddSingleton<BooksPage>();
//builder.Services.AddTransient<ReaderPage>();
//builder.Services.AddTransient<ProfilePage>();
//builder.Services.AddTransient<ModalReader>();
//builder.Services.AddTransient<BookmarksModal>();
//builder.Services.AddTransient<FontModal>();

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật