Workflow link in toolbar under configuration when there is nothing there

Created on 7 February 2017, about 8 years ago
Updated 27 January 2023, about 2 years ago

Problem/Motivation

The toolbar shows a link to "Workflow" under configuration even when there is nothing there. The system module ships with the Workflow menu link in system.links.menu.yml - it only shows up on /admin/config if there is a module that adds to the menu (for example Workflows) but for some reason it is in the toolbar anyway.

To reproduce install the standard install profile and put the toolbar in vertical mode.

Click on the link takes you to admin/config/workflow where it tells you that you don't have any administrative items.

Proposed resolution

Fix the toolbar module to use the same rules as admin/config

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

10.1 ✨

Component
ToolbarΒ  β†’

Last updated 3 days ago

  • Maintained by
  • πŸ‡«πŸ‡·France @nod_
Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Running for 10.1 as this one is just a small annoyance

  • Status changed to Closed: duplicate about 2 years ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    This is a duplicate of πŸ› Restrict access to empty top level administration pages Fixed .

  • πŸ‡ΊπŸ‡ΈUnited States alison

    I know this was marked as a duplicate, but πŸ› Restrict access to empty top level administration pages Fixed is fixed and, as far as I can tell, included in 10.2, and I still have a "Workflow" link in my admin menu, even with nothing enabled that goes in there, and therefore just takes me to an empty "access denied" page. (FWIW, I'm logged in as user 1.)

    Am I conflating stuff, is what I'm describing actually something else and I should submit a new issue, or?

  • Status changed to Needs review 10 months ago
  • πŸ‡¦πŸ‡ΊAustralia jannakha Brisbane!

    #296693: Restrict access to empty top level administration pages - doesn't solve workflow menu issue

    When I click on Workflow - I get access denied (on Drupal 10.2.6):

    Patch #14 works and should be included in D10+

  • Status changed to Needs work 10 months ago
  • The Needs Review Queue Bot β†’ tested this issue.

    While you are making the above changes, we recommend that you convert this patch to a merge request β†’ . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

  • First commit to issue fork.
  • Status changed to Postponed: needs info 9 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    This needs to be committed to 11.x (which is main) first and then applied to branches.

    I tested this on Drupal 10.2.x and after enable workflows I have the following in the menu,

    Following the link takes me to a page with the message "There are no workflow types available. In order to create workflows you need to install a module that provides a workflow type. For example, the Content Moderation module provides a workflow type that enables workflows for content entities." This seems to be working correctly and the status of 'closed (duplicate)' can be restored.

    If I have missed something can someone explain.

  • Status changed to Closed: outdated 5 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    I tried again on a fresh install of 10.2.6 and was not able to reproduce the problem. Since 10.2.6 is in security mode now and will not be receiving bug fixes, I am closing this as outdated.

    If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue β†’ starting from "Install Drupal core".

    Thanks!

Production build 0.71.5 2024