Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#60351 closed defect (bug) (reported-upstream)

Core Navigation Submenu Block - "Links are not crawlable" SEO lighthouse warning

Reported by: frdmsun's profile frdmsun Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.4.2
Component: Menus Keywords: has-patch
Focuses: ui, accessibility Cc:


Top level Core Navigation Submenu Block inserts an empty <a> tag when a link is not entered.

Submenu block can be used to open the submenu on mouse over and there is no intention of using at as a link.

Google page speed score warns - "Links are not crawlable".

It would seem that the a tag should not be used in this case.

Attachments (1)

warning.jpg (260.8 KB) - added by frdmsun 5 months ago.

Download all attachments as: .zip

Change History (5)

5 months ago

This ticket was mentioned in PR #5952 on WordPress/wordpress-develop by AbdiTolesa.

5 months ago

  • Keywords has-patch added

#2 @poena
5 months ago

Hi @frdmsun

To create a parent menu item that is not a link you need to enable the Submenus "Open on click" setting on the navigation block. This changes the tag to<button>.

I understand from the description that you want this to work on hover, not only on click, and this is not implemented.
Issues and feature requests for blocks need to be opened in the Gutenberg GitHub repository. Can you please move it there?

You can find an overview issue about the navigation block here:

#4 @poena
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.