Generated with the help of an LLM.

Problem/Motivation

The review dashboard at /admin/content/stale-review is only linked from a menu link with parent system.admin_content. With the core Navigation module, editors can't find it: Navigation removes the admin "Content" item and its children from the sidebar, and adds its own "Content" link without children (see NavigationHooks::navigationMenuLinkTreeAlter()). The dashboard tabs only show once you are on the dashboard.

So the only ways in are typing the URL or the link in the digest mail. With the classic toolbar I think it's similar, unless Admin Toolbar is installed to show the dropdowns, but I didn't test that.

Steps to reproduce

  • Install Navigation and content_reviewed_date.
  • Log in as a user with "view content review dashboard".
  • Look for a link to the review dashboard in the sidebar or on /admin/content: there is none.

Proposed resolution

Add a "Content review" tab on the content overview, next to the tabs core and other modules already add there (Media, Blocks, ...):

content_reviewed_date.content_overview:
  title: 'Content review'
  route_name: content_reviewed_date.stale_report
  base_route: system.admin_content
  weight: 20

The menu link can stay for sites that use the toolbar dropdowns. That works for us, but maybe there is a reason the module only uses the menu link?

Remaining tasks

  • MR, with a test that the tab shows on /admin/content for users with the dashboard permission.

User interface changes

A "Content review" tab on /admin/content.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

svendecabooter created an issue. See original summary.

svendecabooter’s picture

Status: Active » Needs review
svendecabooter’s picture

Created a MR. It adds the "Content review" tab on /admin/content and keeps the existing menu link. The functional test checks that the tab shows for users with "view content review dashboard" and not for others.

  • ajetiv1 committed c858457f on 1.2.x
    Issue #3636743 by svendecabooter, ajetiv1: Review dashboard can't be...
svendecabooter’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.