Closed MadMikeyB closed 6 years ago
It looks like you have something in your app that's stripping the protocol:
{"@context":"\/\/schema.org",
Should be:
{"@context":"http:\/\/schema.org",
If you change that in the testing tool then it validates correctly.
Ahh! I'm noticing this with my canonicals as well.
Turns out the laravel-page-speed package does this with it's \RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class
middleware.
Thanks for the insight, sorry to bother, and thanks for not closing outright 👍
Hello!
Love the package, use it on as many projects as I can.
First time using it solely for JSON-LD Schema though!
Everything works like a charm, but upon running the published site through Google's Structured Data Testing tool, I'm getting the following error:
See Results
I'll preface the below with the fact that I'm not too familiar with schema.org - but it seems to me we're missing a
@type
declaration from each individual ListItem here:https://github.com/davejamesmiller/laravel-breadcrumbs/blob/master/views/json-ld.php#L17
Though after looking at schema.org
Their example looks like this:
So I'm unsure what we can do here? Sorry for the rambling issue, I just wondered if there's anything you may know about this that I probably don't?