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

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

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
    
    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 October 05, 2026, 11:32
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.