Activities of "ageiter"

Answer

I went through these methods step by step during debugging. And actually everything seems to be correct, for my MenuItem "Terminations" MenuItem.Deactivate() is executed and no other is activated. And yet it remained selected / activated.

Then I added a StateHasChanged() and now it works. So it seems that the menu is not being re-rendered.

I assume that the other menu problems also have something to do with this... it happens again and again that the status of the selection (IsActive) does not work correctly and probably only because it is not re-rendered.

This information should be enough for a fix. Can you refund me the question?

Answer

You can try to override the MainMenuItem component

The problem with overriding the ActivateCurrentPage()method is that it is not called when I open the edit page. Otherwise the menu would work correctly. If I am on the edit page and then press F5 for a reload, the menu shows correctly (nothing selected).

The call from the list is made as follows: NavigationManager.NavigateTo($"/termination/{input.Id}");

How can I ensure that ActivateCurrentPage() is also executed?

Answer

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

Answer

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...

Question
  • ABP Framework version: v8.2.0-rc.5 / 8.1.0
  • UI Type: Blazor Server

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?

  1. The overview list "Terminations":

  2. Open a termination to edit:

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:

  1. Before starting the application:

  2. Application started (not logged in):

  3. Logged in ("Remember me" checked):

  4. Stop the application, but keep the browser open:

  5. Close browser and reopen it:

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

hi

You can check the request cookies of GET / in not working case.

You mean before I sign in?

This is what it looks like after logging in:

Showing 141 to 150 of 347 entries
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 November 16, 2026, 06:26
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.