RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar travisrisner
travisrisner
16 Oct 2025

Pull Request for Issue #46191 & #43955 .

Summary of Changes

Ensures the root domain is appended to image paths for schema images.

Testing Instructions

  • Ensure the Schema plugin is enabled
  • Edit an article and swap to the Schema tab
  • Set schema type to something with an image (like recipe)
  • Set the image and view the generated schema
  • Note: You might need to clear schema cache (System->Clear Cache)

Actual result BEFORE applying this Pull Request

The images set by schema did not have the root domain prepended and contained extra metadata from joomla about image sizes.

Expected result AFTER applying this Pull Request

The root domain is prepended and the extra information is removed.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar travisrisner travisrisner - open - 16 Oct 2025
avatar travisrisner travisrisner - change - 16 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2025
Category Front End Plugins
avatar richard67
richard67 - comment - 17 Oct 2025

@travisrisner Append? Or did you mean prepend? Append means to add to the end, prepend to the beginning.

avatar travisrisner travisrisner - change - 17 Oct 2025
Labels Added: PR-5.4-dev
avatar travisrisner
travisrisner - comment - 17 Oct 2025

@travisrisner Append? Or did you mean prepend? Append means to add to the end, prepend to the beginning.

Good catch, yes prepend!

avatar travisrisner travisrisner - change - 17 Oct 2025
Title
[5.4] - Append root url to schema images
[5.4] - Prepend root url to schema images
avatar travisrisner travisrisner - edited - 17 Oct 2025
avatar travisrisner travisrisner - change - 17 Oct 2025
The description was changed
avatar travisrisner travisrisner - edited - 17 Oct 2025
avatar travisrisner travisrisner - change - 17 Oct 2025
The description was changed
avatar travisrisner travisrisner - edited - 17 Oct 2025
avatar richard67 richard67 - change - 25 Oct 2025
Labels Added: bug
7a55118 27 Oct 2025 avatar travisrisner cs
6ee41a2 27 Oct 2025 avatar travisrisner cs
cef58d1 27 Oct 2025 avatar travisrisner cs
avatar ceford ceford - test_item - 4 Nov 2025 - Tested successfully
avatar ceford
ceford - comment - 4 Nov 2025

I have tested this item ✅ successfully on cd0c8e2

Before patch: "image": "images/tests/green-tree-frog-256.jpg",
After patch: "image": "http://localhost/joomla-cms5/images/tests/green-tree-frog-256.jpg",


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46306.

avatar mothershedc mothershedc - test_item - 4 Nov 2025 - Tested successfully
avatar mothershedc
mothershedc - comment - 4 Nov 2025

I have tested this item ✅ successfully on cd0c8e2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46306.

avatar richard67 richard67 - change - 4 Nov 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 4 Nov 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46306.

avatar muhme muhme - change - 6 Nov 2025
Labels Added: RTC
avatar muhme
muhme - comment - 6 Nov 2025

@travisrisner I tested this PR before merge and see article's image have absolute URLs now 👍. And I configured 'System - Schema.org' plugin with an Image. But this logo image has still relative URLs in url and contentUrl:

            "@type": "Organization",
            "@id": "http://localhost:7054/#/schema/Organization/base",
            "name": "Heikos Test Site",
            "url": "http://localhost:7054/",
            "logo": {
                "@type": "ImageObject",
                "@id": "http://localhost:7054/#/schema/ImageObject/logo",
                "url": "images/logo.png",
                "contentUrl": "images/logo.png",

Is it possible to fix Organisation/Person Image absolute URL too?

Add a Comment

Login with GitHub to post a comment