Uninstalling sitemap also completely removes main navigation menu

Created on 6 January 2022, over 3 years ago
Updated 6 August 2024, 8 months ago

Problem/Motivation

Uninstalling the module also deletes the Main navigation menu it was associated with via 'Enabled plugins'

Steps to reproduce

drush pm-uninstall sitemap

or, uninstall it from the 'Uninstall Module' GUI. When using the latter, the following CONFIGURATION DELETIONS are displayed:

---

The listed configuration will be deleted.
Block

  • Main navigation
  • Main navigation
  • Main navigation
  • Main navigation

Menu

  • Main navigation

View

  • Glossary

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Korben_Dallas

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.

  • πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

    I tested this using the HEAD of sitemap-8.x-2.x (i.e.: commit cbc69f1 from 2024-08-06) and could not reproduce the issue on...

    1. drupal-11.0.0
    2. drupal-10.4.x-dev
    3. drupal-10.3.1
    4. drupal-10.2.7
    5. drupal-9.5.9

    What I did was...

    1. Install Drupal core with the Standard install profile.
    2. Clone the sitemap module's 8.x-2.x branch.
    3. Create a basic page and add it to the main menu.
    4. Go to /admin/structure/menu/manage/main to make sure there are menu items (i.e.: "Home" and the basic page from the previous step).
    5. Go to /admin/modules and Install the sitemap module.
    6. Go to /admin/config/search/sitemap, enable the Menu: Main navigation plugin, and under plugin settings, change its Title configuration from the default to Main menu.
    7. Go to /sitemap to make sure the menu and both its items appears in the sitemap.
    8. Go to /admin/modules/uninstall, check the Sitemap module, and click "Uninstall".
    9. Verify the Confirm uninstall page does NOT list the menu, then click Uninstall.
    10. Go back to /admin/structure/menu/manage/main to make sure there are menu items (i.e.: "Home" and the basic page from the previous step).

    So I'm going to assume that:

    1. either I'm doing something wrong,
    2. or a previous change to Sitemap fixed this,
    3. or a previous change to Drupal core fixed this

    Please re-open this issue with steps to reproduce, if you can reproduce the problem!

Production build 0.71.5 2024