Problem/Motivation

On Context removal or editing link to non existing context still appears in dropdown menu.

Steps to reproduce

In Admin/structure/context create new context save it and then edit its title and machine name. in Admin toolbar you will see new context and old one before editing which goes to 404 page

Proposed resolution

After Mehul comment it's clearly not a Admin Toolbar issue
please follow this link https://www.drupal.org/project/context/issues/3284359

Comments

vitaliych created an issue. See original summary.

prashant.c’s picture

Following the steps you provided, I was unable to reproduce it on Drupal 9.5.x while using version 8.x-4.1 of the context module from https://www.drupal.org/project/context.

vitaliych’s picture

Hi Prashant, thanks for your reply
I'm Using Drupal 9.5.5 context 8.x-4.1 Admin toolbar 3.3.0 with Claro administration theme
Ddev development environment on MacMini M1 chipset

Context module it self working fine and not showing any issues ... admin tool dropdown menu has a bug

Steps to reproduce after installation:

1. create a context.
2. Edit this context especially machine name
3. you should see in drop down menu your old (not edited context name will lead to 404) and new one which works fine

might be some helpful to reproduce. You may ask me any question i'll be happy to reply here

mehul.gada’s picture

Hi vitaliych,

The issue is neither with the Admin Toolbar menu nor caching issue. It is an issue with the Context menu. When the machine name for given context is changed, it is adding a new menu instead of updating an existing one and a bug report - https://www.drupal.org/project/context/issues/3284359 is already open for the same. Let me push a quick fix there and you can close this request.

Thanks

vitaliych’s picture

Hi Meghul,
Thank you very much for clarity ...
Do i need to close the bug here?

vitaliych’s picture

Issue summary: View changes
Status: Active » Needs review
prashant.c’s picture

Status: Needs review » Closed (works as designed)