A fix could be to assume that the non-array item is always the one at the end, and set its url to the current URL ('@id' => Yii::$app->request->absoluteUrl)
Thank you for this input. I fixed the auto generated output like you proposed.
The 1. isn't a bug. It works as it should. Autocreation of Json+LD breadcrumbs works only if you use it with default namespace.
hey :)
Noticed a few issues with breadcrumbs:
Old classes are still used: https://github.com/simialbi/yii2-schema-org/blob/master/src/helpers/JsonLDHelper.php#L38
The produced JSON LD is invalid, because all entries should contain an url. Currently the code looks like this:
A fix could be to assume that the non-array item is always the one at the end, and set its url to the current URL (
'@id' => Yii::$app->request->absoluteUrl
)