Protocol-relative 'image' URL in Schema.org

974 views Asked by At

My image addresses look like this:

//cdn.shopify.com/....jpg

Google SDTT:

Although there are no indicated errors, if I paste image address in a browser, I will get:

Your file was not found

Do I need to add https: in order to make it work? Should my developer fix image address?

1

There are 1 answers

0
unor On

When entering a network-path reference (//example.com/foo) into a browser’s address bar, you don’t end up on a HTTP(S) page, because the browser doesn’t know the base URI. See details.

When linking a network-path reference from a HTML page, a base URI can be established. Standard-conforming user agents (browsers etc.) are capable to understand such references.

For structured data (e.g., with Schema.org), make sure that you correctly specify that the property value is a URI reference, otherwise it would be interpreted as string. So in Microdata and RDFa, you have to use elements like a/img/link/etc., in JSON-LD you have to use @id (but your @context might pre-define that the values of certain properties are by default @ids).