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.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35