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.~~
Exception message and full stack trace: 404 not found for images of the theme
Steps to reproduce the issue:
app.UsePathBase(new PathString(pathBase));
within the Modulepublic 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.