Closed Con-Shoc closed 6 years ago
Issue (Current Behaviour) This is similar to issue https://github.com/Con-Shoc/auto/issues/6, but the SearchAction schema is being applied to all site pages.
Solution (Expected Behaviour) This schema type should only be present on the homepage.
Remove from all pages except the homepage.
Code Snippet Remove the following code from all pages except the homepage:
<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>
Issue (Current Behaviour) This is similar to issue https://github.com/Con-Shoc/auto/issues/6, but the SearchAction schema is being applied to all site pages.
Solution (Expected Behaviour) This schema type should only be present on the homepage.
Remove from all pages except the homepage.
Code Snippet Remove the following code from all pages except the homepage:
<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>