• Choosing a custom license in the plugin causes the url to fail.

    Google requires an unadorned URL in the ‘license’ property. However, the plugin sets this to “license”: “https://custom”, and uses the ‘acquireLicensePage’ property for a URL that also includes potentially unwanted url parameters. See below for an example:

    <script type="application/ld+json">
    [{"@context": "https://schema.org/",
    "@type": "ImageObject",
    "contentUrl": "https://eatingasturias.com/wp-content/uploads/2022/02/My-Asturias-New-Beginnings-curro--300x300.jpg",
    "license": "https://custom",
    "acquireLicensePage": "https://eatingasturias.com/impressum/image-copyright-licensing/?license-policy=1&id=14194&src=https%3A%2F%2Featingasturias.com%2Fwp-content%2Fuploads%2F2022%2F02%2FMy-Asturias-New-Beginnings-curro--300x300.jpg"},
    {"@context": "https://schema.org/",
    "@type": "ImageObject",
    "contentUrl": "https://eatingasturias.com/wp-content/uploads/2022/02/My-Asturias-New-Beginnings-chicken--300x300.jpg",
    "license": "https://custom",
    "acquireLicensePage": "https://eatingasturias.com/impressum/image-copyright-licensing/?license-policy=1&id=14194&src=https%3A%2F%2Featingasturias.com%2Fwp-content%2Fuploads%2F2022%2F02%2FMy-Asturias-New-Beginnings-chicken--300x300.jpg"
    }]</script>

    The obvious solution is to insert the url chosen in the plugin into the ‘license’ property, and provide a separate field for including another url in the ‘acquireLicensePage’ property as the site owner requires.

  • The topic ‘Custom License results in malformed license and acquireLicensePage elements’ is closed to new replies.