Request for improvements in SiteNavigationElement schema generation
-
I am using the SASWP plugin to generate
SiteNavigationElementstructured data from my WordPress menu.
I noticed two issues that could be improved to make the schema output more compliant with schema.org and Google’s guidelines:- Unique
@idvalues
Currently, allSiteNavigationElementitems are generated with the same@id(for examplehttps://domain.com#Main).
This causes multiple elements to share the same identifier, which is not valid JSON-LD practice.
Suggestion: please generate unique@idvalues for each navigation element, for example based on the menu item slug or URL (https://domain.com#nav-notebook, etc.). - Relative URLs
The plugin outputs relative URLs from the WordPress menu (e.g./notebook/).
According to schema.org recommendations, URLs should be absolute.
Suggestion: normalize all links to full canonical URLs (e.g.https://domain.com/notebook/).
Both of these improvements would make the structured data cleaner and reduce potential warnings in Google’s Rich Results Test.
Could you please consider adding these enhancements in a future release?
Thank you for your support and for maintaining this plugin.
- Unique
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.