[4.0] Fix for Lazyloading bad url #31511
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue #31509 .
Summary of Changes
Fixing bad URL (front end links replace
&
with&
, my bad never tested that caseTesting 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 thefile_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 theHTMLHelper::image
as the tag will be inserted only if the file exists).