Open Closed

User Menu Blazor Server app template - 2 x MyAccount Links #4902


User avatar
0
ccernat created
  • ABP Framework version: v7.1.1
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue: New Blazor server app template, run it. Login as admin, see in the user menu two entries with my account, each of them navigating to different page, also not respecting the top menu layout, going directly into side menu."

Clicking on the first MyAccount:

Clicking on the second MyAccount:

Mention here: this MyAccount is completely different from the first one in terms of layour, no profile picture, etc etc


6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it and your ticket refunded.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I can't reproduce the problem, could you provide the full steps to reproduce it? thanks.

  • User Avatar
    0
    ccernat created

    hi,

    new blazor server app template, leptonx theme. switch menu to top-menu. replace account packages with source code. run it.

    i think you will get this even without replacing packages with source code for the Volo.Account.Pro module.

    tks.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Ok, I will check it.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    also not respecting the top menu layout, going directly into side menu."

    The Blazor server uses the Account MVC UI.

    You also need to add the following code:

    Configure<LeptonXThemeMvcOptions>(options =>
    {
        options.ApplicationLayout = LeptonXMvcLayouts.TopMenu;
    });
    

    see in the user menu two entries with my account, each of them navigating to different page

    It's a problem. The Suite should not install package Volo.Abp.Account.Pro.Public.Blazor.Server.

    Please remove [DependsOn(typeof(AbpAccountPublicBlazorModule))] from the BlazorModule.

    Your ticket has been refunded.

  • User Avatar
    0
    ccernat created

    It works now.

    Tks.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09