Activities of "martin.gemme.uzi"

Thank you @liangshiwei, thanks for the response and acknowledgment.

This is a recurring issue (e.g. everywhere where '/xyz' is used), other examples: 1- CSS within wwwroot, in the "demo" apps. We do have the same issue (we'd probably have to tweak during the build to modify the css to update the url() based on PathBase.. if you have ideas how to do that, I'd really appreciate it). 2- as for the overriding: src\Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX\Themes\LeptonX\Layouts\Account\Default.cshtml and src\Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX\Themes\LeptonX\Layouts\Application\TopMenuLayout.cshtml

For #1 I'm refering to demo\LeptonXDemoApp.MauiBlazor\wwwroot\css\app.css, which has ":root .lpx-theme-dim, :root .lpx-theme-dark" and ":root .lpx-theme-light" (the 4 urls)

Do you know what timeline/how much time it will take to fix this? Let me know if more information is needed.

Thank you

~~Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage.~~

Provide us with the following info: ~~🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.~~

  • Template: microservice
  • Created ABP Studio Version: 0.9.21
  • Current ABP Studio Version: 0.9.25
  • Multi-Tenancy: Yes
  • UI Framework: blazor-webapp
  • Theme: leptonx
  • Theme Style: light
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: sqlserver
  • Mobile Framework: none
  • Public Website: No
  • Include Tests: Yes
  • Dynamic Localization: No
  • Kubernetes Configuration: Yes
  • Use Local References: No
  • Optional Modules:
    • OpenIddictAdmin
  • Exception message and full stack trace: 404 not found for images of the theme

  • Steps to reproduce the issue:

  1. Create a ABP microservice with the LeptonX theme (auth server)
  2. app.UsePathBase(new PathString(pathBase)); within the Module
  3. The background being hardcoded to /, we get 404 with no option to override it
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    var app = context.GetApplicationBuilder();
    var env = context.GetEnvironment();
    var configuration = context.ServiceProvider.GetRequiredService<IConfiguration>();
    
    // ...

    var pathBase = configuration["App:BasePath"] ?? "/";
    app.UsePathBase(new PathString(pathBase));
        
    // ...
}

Source (LeptonXTheme via abp get-source Volo.Abp.LeptonXTheme): \src\Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX\Themes\LeptonX\Layouts\Account\Default.cshtml

<style>
.lpx-login-bg {
    background-image: url('/LeptonX/images/login-pages/login-bg-img-@(selectedStyle).svg') !important;
}
// ...
</style>

Under there are the Logo, which I "could" override with a basepath, but I think the framework should handle the UseBasePath to make it more seamless.

If it's better to ask for a consultation let me know, but right now it's hard to customize ABP to enable basepath to work.

Showing 1 to 2 of 2 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 10, 2025, 12:38