File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ will add the following to your markup (will be minified):
4141``` html
4242<script type =" application/ld+json" >
4343 {
44- " @context" : " http ://schema.org/" ,
44+ " @context" : " https ://schema.org/" ,
4545 " @type" : " Product" ,
4646 " name" : " Product Name" ,
4747 " aggregateRating" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-structured-data" ,
3- "version" : " 0.0.12 " ,
3+ "version" : " 0.0.13 " ,
44 "description" : " Declarative JSON-LD Structured Data for ReactJS Apps" ,
55 "author" : " Ben Taylor <benlt105@gmail.com>" ,
66 "private" : false ,
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export const JSONLD = props => {
88 const { children, type, ...schema } = props . children . props ;
99 const firstChild = new ChildClass ( props . children . props ) . getJSON ( true , schema ) ;
1010 json = ChildClass . name === 'JSONLDNodeCollection'
11- ? Object . assign ( { '@context' : 'http ://schema.org/' } , { [ type ] : firstChild } )
12- : Object . assign ( { '@context' : 'http ://schema.org/' } , firstChild )
11+ ? Object . assign ( { '@context' : 'https ://schema.org/' } , { [ type ] : firstChild } )
12+ : Object . assign ( { '@context' : 'https ://schema.org/' } , firstChild )
1313 }
1414
1515 return ( props . dangerouslyExposeHtml
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const product = `
99export const productOutput = `
1010 <script type="application/ld+json">
1111 {
12- "@context":"http ://schema.org/",
12+ "@context":"https ://schema.org/",
1313 "@type":"Product",
1414 "name":"Product Name",
1515 "id":"product-x"
@@ -34,7 +34,7 @@ export const aggregateRating = `
3434export const aggregateRatingOutput = `
3535 <script type="application/ld+json">
3636 {
37- "@context":"http ://schema.org/",
37+ "@context":"https ://schema.org/",
3838 "@type":"AggregateRating",
3939 "ratingValue":4.3,
4040 "reviewCount":197,
@@ -82,7 +82,7 @@ export const reviews = `
8282export const reviewsOutput = `
8383 <script type="application/ld+json">
8484 {
85- "@context": "http ://schema.org/",
85+ "@context": "https ://schema.org/",
8686 "@graph": [{
8787 "@type": "Review",
8888 "name": "It's awesome",
You can’t perform that action at this time.
0 commit comments