? ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
8 Jan 2023

Pull Request for Issue #39571, #39538, #39543

Summary of Changes

Use the recommended way to render an image: through the HTMLHelper

Testing Instructions

Check that selecting a custom logo image works and that the source doesn't have the hash part of the URL. Also check that svg renders as expected

Actual result BEFORE applying this Pull Request

The URL contains the hash (it is dirty) and SVG images get 0 width and height thus are not visible

Expected result AFTER applying this Pull Request

The URL does not contain the hash (it is clean) and SVG images are visible

Link to documentations

This is a bug fix without changing any of the existing functionality
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 joomla-cms-bot joomla-cms-bot - change - 8 Jan 2023
Category Front End Templates (site)
avatar dgrammatiko dgrammatiko - open - 8 Jan 2023
avatar dgrammatiko dgrammatiko - change - 8 Jan 2023
Status New Pending
avatar dgrammatiko dgrammatiko - change - 8 Jan 2023
Labels Added: ?
avatar Quy
Quy - comment - 9 Jan 2023

Double //. Also image does not display on the frontend.

39574

avatar dgrammatiko
dgrammatiko - comment - 9 Jan 2023

@Quy should be ok now, thanks

avatar Quy
Quy - comment - 9 Jan 2023

The double slashes is fixed, however, the image won't display even though the markup is there. Adding a width attribute displays the image.

<img loading="eager" decoding="async" src="http://localhost/joomla-cms-4.2-dev/images/logo.svg" alt="J42">

avatar dgrammatiko
dgrammatiko - comment - 9 Jan 2023

however, the image won't display even though the markup is there. Adding a width attribute displays the image.

Ok, this could be solved either with CSS (patch) or the media manager needs to pass the correct size when an svg is selected (proper solution). I would make a PR for the second option.
This PR is still valid as it cleans the URL #...

avatar Quy Quy - test_item - 9 Jan 2023 - Tested successfully
avatar Quy
Quy - comment - 9 Jan 2023

I have tested this item successfully on cca0b50


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

avatar viocassel viocassel - test_item - 10 Jan 2023 - Tested successfully
avatar viocassel
viocassel - comment - 10 Jan 2023

I have tested this item successfully on cca0b50


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

avatar chmst chmst - change - 10 Jan 2023
Status Pending Ready to Commit
avatar chmst chmst - edited - 10 Jan 2023
avatar chmst
chmst - comment - 10 Jan 2023

RTC


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

avatar dgrammatiko
dgrammatiko - comment - 10 Jan 2023

@Quy @viocassel thanks for testing this one. #39586 is the last missing part (the one I wrote about here: #39574 (comment)) and would be awesome if you could test that one as well. Mille grazie

avatar roland-d roland-d - change - 10 Jan 2023
Labels Added: ?
avatar roland-d roland-d - merge - 10 Jan 2023
avatar roland-d roland-d - change - 10 Jan 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-01-10 19:29:26
Closed_By roland-d
avatar roland-d roland-d - close - 10 Jan 2023
avatar roland-d
roland-d - comment - 10 Jan 2023

Thank you

Add a Comment

Login with GitHub to post a comment