wp-bootstrap-navwalker
wp-bootstrap-navwalker copied to clipboard
SiteNavigationElement producing incorrect URLs for schema markup
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.
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"