Open Closed

Replacing LeptonX Account layout Default.html stops abp-script-bundle from working #7214


User avatar
0
jasenfici@gmail.com created
  • ABP Framework version: v8.1.1
  • UI Type: Angular or/ MVC /
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:
  1. Create a new abp-suite project using Angular and LeptonX theme
  2. Copy the LeptonX default.cshtml layout from source to your new project

\aspnet-core\src\AbpAngularSample.HttpApi.Host\Themes\LeptonX\Layouts\Account\Default.cshtml

  1. Run ASP.NET project and navigate to Login page.

The page loads successfully, however the bundling system stops working. Instead the follow HTML is delivered:

I think this is a bug but the documentation is a bit all over the place on replacing the LeptonX theme. If there's a step I missed that is required from this simple scenario AND documented somewhere, please point it out.

Thanks, jasen


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to create a _ViewImports.cshtml file in the \aspnet-core\src\AbpAngularSample.HttpApi.Host\Themes\ folder?

    @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
    @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
    @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
    @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11