Add json_encode constant
MakarVG opened this issue · 1 comments
Now plugin generates schema data links with a backward slashes. Add to all json_encode functions an additional constant JSON_UNESCAPED_SLASHES
.json_encode($this->toArray(), JSON_UNESCAPED_UNICODE, JSON_UNESCAPED_SLASHES)
Because, as a SEO specialist, I see it as many 'mistakes' were generated. Because every markup example shows that all URLs should be in the correct format without backslashes.
Of course, there could be some precautions for such cases, but I wouldn't bet on that with my site optimization.
My bad, as a SEO and QA specialist: because of a lack of knowledge and research on this question. And lack of skills of my Devs.
For those, who will have same problem (the presence of back slashes) — call it through json_encode and set your constants by yourself. If you need to use more than 1 constant — divide them with |.
More about it here: php.net/manual