diff --git a/CHANGELOG.md b/CHANGELOG.md index b0091fe1e0..3a94438cef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed escaping on created store account confirm message. [#2248]https://github.com/bigcommerce/cornerstone/pull/2248 - Pass theme settings from blog page to blog post template. [#2253]https://github.com/bigcommerce/cornerstone/pull/2253 - Bump jQuery to 3.6.1. [#2250](https://github.com/bigcommerce/cornerstone/issues/2250) +- Fix "incorrect value type" for anonymous reviews in Google Search Console [#2255]https://github.com/bigcommerce/cornerstone/pull/2255 ## 6.5.0 (06-24-2022) - Category icons do not appear in Search Form [#2221]https://github.com/bigcommerce/cornerstone/pull/2221 diff --git a/templates/components/products/schema.html b/templates/components/products/schema.html index ca258fd011..5ed1a953ff 100644 --- a/templates/components/products/schema.html +++ b/templates/components/products/schema.html @@ -28,7 +28,7 @@ "@type": "Review", "author": { "@type": "Person", - "name": {{{JSONstringify name}}} + "name": {{#if name}}{{{JSONstringify name}}}{{else}}{{{JSONstringify (lang 'products.reviews.anonymous_poster')}}}{{/if}} }, "datePublished": "{{date}}", "reviewBody": {{{JSONstringify text}}},