Yes, I know. I just mentioned the possibility of returning to the upper menu from the breadcrumbs.
Ah ok, but the user will of course click on the menu link... and if nothing happens, that's not so great of course.
You can try to override the MainMenuItem component I'm going to try that out.
In general, the menu still has a few bugs when displaying the active item. Sometimes an item remains selected, although you are already on another item (then 2 are displayed as selected at the same time). I already complained about this problem some time ago and it would be nice if you could make a fix for it.
It would also be useful if the page was reloaded when clicking on an already selected menu item. You said there that this would be included in the official release as a fix, which probably never happened. https://support.abp.io/QA/Questions/4397/Menu-item-that-has-already-been-selected-cannot-be-selected-again#answer-3a09668d-87cc-d807-2be2-e915eab414e7
On the one hand, I use Blazor and not MVC. And secondly, I'm not talking about the breadcrumbs, but the normal menu. Or how did you mean exactly how I should do it?
I know that it would work if I had an "Edit termination" menu item. But that would make no sense at all to make such a menu entry. Or can I hide it?
There must be a way to remove the selection from the menu. It happens often that pages are shown that are not in the menu...
I am using the LeptonX theme in Blazor Server and have the following problem with the menu: From my overview list I open an entry for editing, which is displayed in a separate Razor page. Unfortunately, the selection in the menu remains on the previous item. As a result, I can no longer select this menu item to return to the list (menu items that have already been selected cannot be selected a second time).
I would actually like to do the following in my edit page:
PageLayout.MenuItemName = string.Empty;
But unfortunately this does not work... Is there any other way to delete the menu selection?
I have found the problem... actually the setting was enabled to delete the cookies when closing the browser :-( I don't know that I ever enabled this... but now, after disabling it, it works as it should.
The setting can be found under: edge://settings/clearBrowsingDataOnClose
Thanks for your support!
I think we have a misunderstanding here.
When I am logged in, the cookie is correctly present. In the case where it does NOT work, I am not yet logged in. It would be the second screenshots from the login page that are relevant.
But we are probably looking in the wrong place. I have now found out that the cookies are there as long as the browser is open. After closing the browser (not just the tab, but the entire browser), these cookies are gone again.
Here are a few screenshots of the cookie cache:
However, I have not set any rules that would delete the cookies after closing the browser.
I checked various browsers again and found out that this behavior only occurs in the Edge browser (Chrome and Firefox work correctly). Any ideas?
hi
You mean before I sign in?
When "remember me" doesn't work.
Yes, that was the case with the first screenshot. This is what it looks like when I restart the application and log in for the first time (with the "Remember me" checkbox selected).
https://support.abp.io/QA/Questions/7383/Remember-me-does-not-work-properly-during-development#answer-3a135bb3-cfe0-abe2-f24c-7264e541c34d
I have changed this, but unfortunately result.failure is null.
2024-06-24 09:59:47.742 +02:00 [DBG] AuthenticationScheme: Identity.Application was not authenticated. 2024-06-24 09:59:47.743 +02:00 [ERR] Authentication failed. 2024-06-24 09:59:47.743 +02:00 [ERR] [null] 2024-06-24 09:59:47.748 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ValidateHostHeader. 2024-06-24 09:59:47.749 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+EvaluateValidatedTokens. 2024-06-24 09:59:47.751 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromAuthorizationHeader. 2024-06-24 09:59:47.752 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromBodyForm. 2024-06-24 09:59:47.753 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromQueryString. 2024-06-24 09:59:47.755 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-06-24 09:59:47.755 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was marked as rejected by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-06-24 09:59:47.755 +02:00 [DBG] AuthenticationScheme: OpenIddict.Validation.AspNetCore was not authenticated. 2024-06-24 09:59:47.755 +02:00 [ERR] Authentication failed. 2024-06-24 09:59:47.756 +02:00 [ERR] [null] 2024-06-24 09:59:47.795 +02:00 [DBG] Policy authentication schemes did not succeed 2024-06-24 09:59:48.049 +02:00 [INF] Authorization failed. These requirements were not met: PermissionRequirement: Palma.Terminations 2024-06-24 09:59:48.054 +02:00 [INF] AuthenticationScheme: Identity.Application was challenged. 2024-06-24 09:59:48.065 +02:00 [INF] Request finished HTTP/2 GET https://localhost:44367/ - 302 0 null 1422.2229ms 2024-06-24 09:59:48.071 +02:00 [INF] Request starting HTTP/2 GET https://localhost:44367/Account/Login?ReturnUrl=%2F - null null 2024-06-24 09:59:48.083 +02:00 [DBG] The request path /Account/Login does not match a supported file type 2024-06-24 09:59:48.086 +02:00 [DBG] 1 candidate(s) found for the request path '/Account/Login' 2024-06-24 09:59:48.089 +02:00 [DBG] Endpoint '/Account/Login' with route pattern 'Account/Login' is valid for the request path '/Account/Login' 2024-06-24 09:59:48.090 +02:00 [DBG] Request matched endpoint '/Account/Login' 2024-06-24 09:59:48.091 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2024-06-24 09:59:48.091 +02:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2024-06-24 09:59:48.091 +02:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2024-06-24 09:59:48.091 +02:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2024-06-24 09:59:48.091 +02:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2024-06-24 09:59:48.091 +02:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2024-06-24 09:59:48.096 +02:00 [DBG] AuthenticationScheme: Identity.Application was not authenticated. 2024-06-24 09:59:48.096 +02:00 [ERR] Authentication failed. 2024-06-24 09:59:48.096 +02:00 [ERR] [null] 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ValidateHostHeader. 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+EvaluateValidatedTokens. 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromAuthorizationHeader. 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromBodyForm. 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromQueryString. 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-06-24 09:59:48.097 +02:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was marked as rejected by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-06-24 09:59:48.097 +02:00 [DBG] AuthenticationScheme: OpenIddict.Validation.AspNetCore was not authenticated. 2024-06-24 09:59:48.097 +02:00 [ERR] Authentication failed. 2024-06-24 09:59:48.097 +02:00 [ERR] [null] 2024-06-24 09:59:48.135 +02:00 [DBG] Static files was skipped as the request already matched an endpoint. 2024-06-24 09:59:48.176 +02:00 [INF] Executing endpoint '/Account/Login' 2024-06-24 09:59:48.234 +02:00 [INF] Route matched with {page = "/Account/Login", area = "", action = "", controller = ""}. Executing page /Account/Login
hi
Can you change the logs level and share the logs again?
Thanks.
https://support.abp.io/QA/Questions/7383/Remember-me-does-not-work-properly-during-development#answer-3a134c11-55b1-b7cc-7378-4891bda51064
Sorry, I didn't realize that with my configuration the Microsoft messages are only logged at the INFO level. I'll send them to you again.