Menu reference uses data from other menu

Created on 18 September 2020, almost 4 years ago
Updated 2 March 2024, 4 months ago

Problem/Motivation

When sitemap is enabled (via config_replace) with a menu and the menu changes (programmatically by import) there a multiple instances of the same menu visible until the sitemap settings form is saved. Cache clear does not help.

Steps to reproduce

* enable a sitemap with menu
* change the menu programmatically (in my case we used config rewrite to add the sitemap via a config specific module).
* Check the page /sitemap (see screenshot. Multiple instances in frontend visible)
* Checke sitemap settings there is only ONE instance

Proposed resolution

current workaround: Save the sitemap settings or enable the module only after your menus are up to date.

Problem found: The controller is using same date for subsequent menu IDs.

Remaining tasks

Figure out why the menu is not updated. Probably cache tags missing?

πŸ› Bug report
Status

Postponed: needs info

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany digitaldonkey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024