Open Closed

Angular UI - Breadcrumb reset after navigation #7371


User avatar
1
gogu.stere@3sstudio.com created
  • ABP Framework version: v8.0.5
  • UI Type: Angular
  • Database System: EF Core
  • Exception message and full stack trace: -
  • Steps to reproduce the issue: After I navigate in that manner, the top bar (including the breadcrumb items) resets.

To give some more context on why I need this, I have a menu item called Masterdata. Within this page you can select from a table to view a details page on a specific user. In the overview page breadcrumb display correct MasterData | Overview. Also i have management page that can be accessed through navigation, i don't want to display management in sidebar. On this page, the breadcrumb is reset and is displaying only HOME. It should be displaying masterdata | overview | management

Please let me know if I'm missing something. masterdata-routing.module.ts

{ path: 'overview', component: CustomersComponent, canActivate: [permissionGuard], data: { requiredPolicy: 'QQ.Customers' } }, { path: 'overview/management', component: CustomersManagementComponent, canActivate: [permissionGuard], data: { requiredPolicy: 'QQ.Customers.Create || QQ.Customers.Edit || QQ.Customers' } },

After navigation should be Masterdata | Overview | Management

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

7 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    Please Check this https://docs.abp.io/en/abp/latest/UI/Angular/Modifying-the-Menu#how-to-patch-or-remove-a-navigation-element

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    gogu.stere@3sstudio.com created

    Hi,

    Thanks for the response. I don't wanna display it in menu. I just wanna navigate and display the breadcrumbs correct.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    Whenever the route does not match then it automatically redirects to home. I have one example please check yours accordingly

    {
            path: '/book-store',
            name: '::Menu:BookStore',
            iconClass: 'fas fa-book',
            order: 101,
            layout: eLayoutType.application,
          },
         {
            path: '/books1',
            name: '::Menu:Books1',
            parentName: '::Menu:BookStore',
            layout: eLayoutType.application
          },
          {
            path: '/books2',
            name: '::Menu:Books2',
            parentName: '::Menu:Books1',
            layout: eLayoutType.application
          },
    

    it will result in this

    please let me know if anything needed.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    1
    gogu.stere@3sstudio.com created

    Hi,

    Your method is working, but i don't want that behaviour. For my use, books2 should not been display in sidebar. In books1 i have a button that navigate to management page using the method i presented.

    Final result should be MASTERDATA | OVERVIEW | MANAGEMENT. Overview contains a navigate button.

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can set the page breadcrumbs https://docs.abp.io/en/abp/latest/UI/Angular/Page-Component#page-parts

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    1
    gogu.stere@3sstudio.com created

    Hi! I followed the steps from the link to configure the breadcrumbs, but it didn't produce the needed result. Instead, it added a new navigation and I want to update the existing one. Any ideas?

    Thanks!

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    After my check, there is no simple way to do it.

    You need to replace the breadcrumb-component https://docs.abp.io/en/commercial/latest/themes/lepton-x/angular-customization#breadcrumb-component

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.