Editing publisher tags in header, adding missing url tag

Using Ghost 3.2.0
URL: https://blog.getclue.com/visionlink-frequently-asked-questions/

Problem: Google’s Structure Data Testing Tool (SDDT), raises an error because Ghost’s auto-generated schema misses a url tag in the Publisher section of the script. See here.

Here’s the section of the auto-generated script that Ghost creates:

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Article",
    "publisher": {
        "@type": "Organization",
        "name": "The Full Scoop",
        "logo": "http://blog.getclue.com:80/content/images/2020/06/clue_wordmark_safety_orange.png"
    },

Question: I want to edit Ghost’s auto-generated script, to add the missing url tag that Google’s SDDT tool is complaining about i.e. add this after the name tag and before the logo tag above:

"url": "https://blog.getclue.com",

How do I do that?

Hi @getclue :wave:
That URL is being generated from what has been configured in your Ghost install, so the site URL has been set to that. Are you able to check the config file for this?

Thanks @DavidDarnes for the super quick reply. Which config file I need to check, config.js?

To confirm what we want to achieve: the ‘url’ tag is simply not generated in the script above. What we want is to edit Ghost’s auto-generated schema and add this missing tag.

Just been informed that this was a bug in 3.2.0, if you update to the latest version of Ghost it’ll resolve the issue :blush:

Great! will upgrade to 3.20.3 now

1 Like