wp-bootstrap-navwalker icon indicating copy to clipboard operation
wp-bootstrap-navwalker copied to clipboard

SiteNavigationElement producing incorrect URLs for schema markup

Open OmarRobinson opened this issue 6 years ago • 1 comments

Steps to reproduce the issue:

Run a test on any nav using the wp-bootstrap/wp-bootstrap-navwalker

Google Schema Testing Tool: https://search.google.com/structured-data/testing-tool

What I expected:

Correct URLs to be shown

What happened instead:

Incorrect URL is shown in schema markup. Eg. https://www.example.com/menu-item-2787

The menu Id is used as the URL path.

OmarRobinson avatar Oct 19 '19 06:10 OmarRobinson

I am not sure this feature is needed as most WordPress sites are running a plugin that will do this for you. It also causes conflict with SEO plugins. I suggest removing itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement"

OmarRobinson avatar Oct 19 '19 06:10 OmarRobinson