Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storefront): STRF-10416 - Remove URL Encoding from Description in the Product Schema #2350

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Removes the URL encoding from the 'description' in the product rich snippet schema [#2350](https://github.com/bigcommerce/cornerstone/pull/2350)
- Running Lighthouse npm script fails in terminal [#2345](https://github.com/bigcommerce/cornerstone/pull/2345)
- Removed accelerated checkout integration [#2341](https://github.com/bigcommerce/cornerstone/pull/2341)
- Added css classes for ApplePay Button [[#2344]](https://github.com/bigcommerce/cornerstone/pull/2344)
Expand Down
2 changes: 1 addition & 1 deletion templates/components/products/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": {{{JSONstringify product.brand.name}}}
},
{{/if}}
"description": "{{encodeURI (sanitize product.description)}}",
"description": "{{sanitize product.description}}",
"image": "{{getImage product.main_image 'zoom_size' (cdn theme_settings.default_image_product)}}",
{{#and settings.show_product_reviews product.reviews.list.length}}
"aggregateRating": {
Expand Down