Sorry liangshiwei, but, I have to disagree. In this case, I don't see it as a Blazor WebAssembly limitation. The previous version worked differently. When logging out, it was been redirected straightaway to the authentication page. Now, it is going to the host side by calling connect/logout and then it gets redirected to the authentication page. It provokes reloading the application again, annoying the users. Could explain why it is a limitation in this latest version? Maybe I'm missing some point.
Is there a way to avoid the connect/logout?
If you're creating a bug/problem report, please include followings:
We have migrated an application Blazor WASM from version 4.4 to 7.0.1. I have noticed that when the user logs out, it is redirecting to the host application and then redirecting to the login page, forcing it to load all modules again. It is taking time and is annoying. In the previous version, it was redirected to the authentication page right away.
Here are the customizations done as per this topic: https://support.abp.io/QA/Questions/1152/How-to-to-Login-page-when-accessing-the-app-and-after-logout
Is possible to improve it somehow?
Ok, thank you.
Hi, I have two DBContext in my application, one is for ABP tables, like AbpUsers, and the other one I have the tables for my application. In one table, I need to create a Foreign Key to Users (UserId), is that possible? If so, how I can implement that?
Kind regards, Leonardo Willrich.
Hi maliming, I have used my old Default.cstml and have done some adjusts. I've moved on to the next subject and will be back to this when working on the layout for the login page.
Sorry, I've caught up in another project issue and I haven't had the chance to check your answer.
Well, the Login.cshtml overrides correctly. But, it is only part of the all login page as it is wrapped by a layout page. I work out that page is the Default.cshtml. So, this page, when I just override, it doesn't work. I've run the abp bundle as well have already compared project as you suggest.
Any other idea what it can be?
Hi,
I'm in the process to migrate a project from ABP.IO Blazor WASM version 4.3 to version 7.1.0.
In this project, I had overridden the page Default.csthml found in Themes/Lepton/Layouts/Account folder. As the new version is using LeptonX, I have created a new folder structure and copied the file Default.csthml from the Module LeptonX source code. But, doing any changes to the code, it is not working. First, it fails to find CultureInfo. It can be resolved by adding @using System.Globalization. Next, when running the, in the console there are a few errors that don't happen when the Default.cshtml file is not overridden. See console error:
How can I replace/override the Default.csthml from my application? I want to change the logo, change the layout by moving the login to the right side as it was before, and remove the tenant selector as I have customization to log in only using username and password, but, still using a multitenant environment.
Thank you!
Yes, this one is working. Is the same content?
The documentation link is broken: https://docs.abp.io/en/commercial/latest/themes/lepton-x/commercial/blazor