Con-Shoc / auto

1 stars 0 forks source link

SEO - Broken SearchAction Schema on Homepage #3

Closed Con-Shoc closed 6 years ago

Con-Shoc commented 6 years ago

Issue The SearchAction on the homepage is broken and not correctly formatted.

The existing code fails to validate in this tool: https://search.google.com/structured-data/testing-tool/u/0/

Current Code <script data-react-helmet="true" type="application/ld+json">{ "@context": "http://schema.org", "@type": "WebSite", "name": "AutoZone", "url": https://www.autozone.com, "potentialAction": { "@type": "SearchAction", "target": "https://www.autozone.com/searchresult?searchText={search_term_string}", "query-input": "required name=search_term_string" }</script>

Solution Replace the existing schema with the below:

`

`