Open Closed

NavigationManager's NavigationTo does not select the sidebar menu #5105


User avatar
0
hardip created
  • ABP Framework version: v7.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

When using the NavigationManager's NavigationTo method to change the route, does not select the sidebar menu.

refer :

Any solutions for this?


2 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Can you add the code below to your relevant page and try again?

    @inject PageLayout PageLayout
    
    @code {
        protected override async Task OnInitializedAsync()
        {
            PageLayout.MenuItemName = "YourMenuItemName";
        }
    }
    
    

    For more information, please visit this document.

  • User Avatar
    0
    hardip created

    Thank you, Issue resoved.

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 v9.3.0-rc.1. Updated on June 18, 2025, 09:24