Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Fix for Lazyloading bad url #31511

Merged
merged 3 commits into from Nov 30, 2020
Merged

Conversation

dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Nov 27, 2020

Pull Request for Issue #31509 .

Summary of Changes

Fixing bad URL (front end links replace & with &, my bad never tested that case

Testing Instructions

Try to add an image to a menuItem or to the offline page.

Expected == Actual result

The image is selected and the image name is stored in the parameter images.

Documentation Changes Required

@wilsonge just FWIW the new URL with the extra 2 params will always fail for code like: <?php if ($app->get('offline_image') && file_exists($app->get('offline_image'))) : ?> (interpreting the URL as a file path). I think this is something that needs to be communicated. (it's not that bad, removing the file_exists, will get you back to 100% compatibility, eg a URL with the extra params that works fine but a better and safer way out is to use the HTMLHelper::image as the tag will be inserted only if the file exists).

@chmst
Copy link
Contributor

chmst commented Nov 28, 2020

I have tested this item ✅ successfully on af9be28

I have tested successfully with menus, contact, articles and offline page.


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

@ceford
Copy link
Contributor

ceford commented Nov 28, 2020

I have tested this item ✅ successfully on af9be28

Checked both menu and off-line page - image present and correct.


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

@richard67
Copy link
Member

System test failure in Drone seems not to be related to this PR. It seems to be a problem with our testing environment.

@chmst chmst added this to the Joomla 4.0 milestone Nov 28, 2020
@chmst chmst added the RTC This Pull Request is Ready To Commit label Nov 28, 2020
@chmst
Copy link
Contributor

chmst commented Nov 28, 2020

RTC

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 28, 2020
@joomla-cms-bot joomla-cms-bot removed this from the Joomla 4.0 milestone Nov 28, 2020
@richard67 richard67 added the RTC This Pull Request is Ready To Commit label Nov 28, 2020
@richard67
Copy link
Member

@SharkyKZ Why thumbs down? (curious)

@laoneo laoneo added this to the Joomla 4.0 milestone Nov 30, 2020
@laoneo laoneo merged commit 69a3cb6 into joomla:4.0-dev Nov 30, 2020
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 30, 2020
@laoneo
Copy link
Member

laoneo commented Nov 30, 2020

Thanks!

@dgrammatiko dgrammatiko deleted the 4.0-dev_31509 branch April 7, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants