Skip to content

Changes in preferences do not use the collection handle but its title #14945

Description

@lostgeek

Bug description

I have moved some elements in the Nav around and this resulted in following change in /resources/preferences.yaml:

nav:
  sections:
    footer:
      action: '@create'
      display: Footer
      items:
        'content::collections::social_media': '@move'
        'content::collections::sponsoren': '@move'
        'content::collections::co_sponsoren': '@move'

Now "sponsoren" is not the handle of the collection. The title is Sponsoren but the handle is sponsors (we're strictly separating between German for anything customer facing in the cp and English for anything code-related).

When I rename the Title of the collection, but leave the handle the same, the moved section stops working.

How to reproduce

  1. Create a collection with a title that is different from its handle
  2. Move the section around in the CP Nav
  3. Check preferences.yaml

Logs

Environment

Environment
Laravel Version: 12.62.0
PHP Version: 8.5.6
Composer Version: 2.10.0
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de

Statamic
Addons: 6
License Key: Set
Sites: 3 (🇩🇪 Deutsch, 🇫🇷 Français, 🇬🇧 English)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.23.0 PRO

Installation

Existing Laravel app

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions