Skip to content

menu: fix state for alwaysopen=false + collapsibleMenu=false #498

@ajeans

Description

@ajeans

Hello

My site is configured with alwaysopen = false and , so that my menu is collapsed by default.

This works fine in version 5.11.2.

Upgrading to version 5.12.0 seems to break it, all my menu entries in .topics are now expanded.

config.json

{
  "baseURL": "/",
  "languageCode": "en-US",
  "defaultContentLanguage": "en",
  "title": "Quickign developer portal",
  "theme": [
    "quicksign",
    "hugo-theme-relearn"
  ],
  "metaDataFormat": "yaml",
  "defaultContentLanguageInSubdir": true,
  "params": {
    "description": "QuickSign developer portal",
    "author": "QuickSign",
    "alwaysopen": false,
    "disableBreadcrumb": false,
    "disableLandingPageButton": true,
    "titleSeparator": "::",
    "themeVariant": [ "quicksign", "neon", "relearn-light", "relearn-dark" ],
    "versions": {
      "applicant_js": "3.2.0",
      "caseflow": "0.37.0",
      "caseflow_js": "3.10.0",
      "caseflow_old": "0.36.0",
      "esig": "0.51.0",
      "esig_js": "3.6.0",
      "esig_old": "0.50.0",
      "front_apps": "2.7.1",
      "kyc": "0.34.0",
      "kyc_js": "3.4.0",
      "kyc_old": "0.33.0"
    }
  },
  "outputs": {
    "home": [
      "HTML", "SEARCH", "SEARCHPAGE"
    ]
  },
  "markup": {
    "goldmark": {
      "renderer": {
        "unsafe": true,
        "hardWraps": true
      }
    }
  },
  "Languages": {
    "en": {
      "title": "QuickSign Developer Portal",
      "weight": 1,
      "languageName": "English",
      "landingPageURL": "/en",
      "landingPageName": "<i class='fas fa-home'></i> Home",
      "menu": {
        "shortcuts": [
          {
            "name": "<i class='fab fa-fw fa-github'></i> GitHub repo",
            "identifier": "ds",
            "url": "https://github.com/Quicksign",
            "weight": 10
          },
          {
            "name": "<img src='/img/fa-quicksign-logo.png' /> QuickSign.com",
            "identifier": "website",
            "url": "https://www.quicksign.com/en/",
            "weight": 20
          }
        ]
      }
    },
    "fr": {
      "title": "Portail de développement QuickSign",
      "weight": 2,
      "languageName": "Français",
      "landingPageURL": "/fr",
      "landingPageName": "<i class='fas fa-home'></i> Accueil",
      "menu": {
        "shortcuts": [
          {
            "name": "<i class='fab fa-fw fa-github'></i> Repo GitHub",
            "identifier": "ds",
            "url": "https://github.com/Quicksign",
            "weight": 10
          },
          {
            "name": "<img src='/img/fa-quicksign-logo.png' /> QuickSign.com",
            "identifier": "website",
            "url": "https://www.quicksign.com/fr/",
            "weight": 20
          }
        ]
      }
    }
  }
}

5.11.2
image

5.12.0 & 5.12.1
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions