Skip to content

JSON-LD Relative logo image URL #46740

@muhme

Description

@muhme

Steps to reproduce the issue

  • Adminstrator > System > Plugins > System - Schema.org > Configure image
  • Create an article
  • View HTML source code of the article on frontend

Expected result

In article HTML source view the image URLs are absolute. For example:

            "logo": {
                "@type": "ImageObject",
                "@id": "https://localhost:7154/#/schema/ImageObject/logo",
                "url": "https://localhost:7154/images/hlu.png",
                "contentUrl": "https://localhost:7154/images/hlu.png",
                "width": 300,
                "height": 301
            },

Actual result

In article HTML source view the image URLs are relative. For example:

            "logo": {
                "@type": "ImageObject",
                "@id": "https://localhost:7154/#/schema/ImageObject/logo",
                "url": "images/hlu.png",
                "contentUrl": "images/hlu.png",
                "width": 300,
                "height": 301
            },

System information (as much as possible)

Tested with JBT and 5.4-dev

Additional comments

This is a follow-up issues found in testing #46306

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions