outeredge / magento-structured-data-module

Magento Structured Data Module by outer/edge
MIT License
46 stars 13 forks source link

Array in application/ld+json #53

Closed sebfie closed 1 year ago

sebfie commented 1 year ago

Hello,

I can see here : https://github.com/outeredge/magento-structured-data-module/blob/master/view/frontend/templates/jsonld.phtml#L4 you are using an array and I think it should be a hash directly because if generates an error on Safari :

undefined is not an object (evaluating 'r["@context"].toLowerCase')

Thank you !

davidwindell commented 1 year ago

Thanks @sebfie, fixed in v4.0.3