Menu reference uses data from other menu

Created on 18 September 2020, over 4 years ago
Updated 6 September 2024, 7 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

Closed: outdated

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.

  • Status changed to Postponed: needs info about 1 year ago
  • 🇨🇦Canada mparker17 UTC-4

    @tobiasb I see that you closed the merge request, is this because you're no longer experiencing this issue?

  • Status changed to Closed: outdated 7 months ago
  • 🇨🇦Canada mparker17 UTC-4

    This issue has been in "Postponed (maintainer needs more info)" status for more than 6 months without a reply, so I'm going to close this as "Closed (outdated)" to try to keep the issue queue tidy. Thank you in advance for your understanding!

    But please re-open this issue if you are still experiencing this issue!

Production build 0.71.5 2024