User tests: Successful: Unsuccessful:
Pull Request for Issue #46191 & #43955 .
Ensures the root domain is appended to image paths for schema images.
The images set by schema did not have the root domain prepended and contained extra metadata from joomla about image sizes.
The root domain is prepended and the extra information is removed.
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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End Plugins |
| Labels |
Added:
PR-5.4-dev
|
||
@travisrisner Append? Or did you mean prepend? Append means to add to the end, prepend to the beginning.
Good catch, yes prepend!
| Title |
|
||||||
| Labels |
Added:
bug
|
||
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",
I have tested this item ✅ successfully on cd0c8e2
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Labels |
Added:
RTC
|
||
@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?
@travisrisner Append? Or did you mean prepend? Append means to add to the end, prepend to the beginning.