You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#114181 Strange (long) Image URL in Joomla Media Manager

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Friday, 06 September 2024 16:21 BST

dagroupinc
I'm not sure if this is a JCE issue or not but I've noticed when creating an article in Joomla 4.x and linking to an image under "Images and Links" that the image path is now unnecessarily long. For example:

images/news/2023/06/national-cancer-institute.jpg#joomlaImage://local-images/news/2023/06/national-cancer-institute.jpg?width=900&height=481

The real path would end at .jpg and everything after the # would be deleted. I've tried to insert the correct path but it keeps adding the #....

Is there a JCE config for this or would you have any idea where I can fix this? Not sure where to look.

Thnx

Ryan
This extended url is required by the Joomla Media field when it renders the image in the front-end.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dagroupinc

The problem is that the extended url is causing conflicts with the display of the images. Is there any way you know of to fix this so that the url is the simple path?

Ryan

The problem is that the extended url is causing conflicts with the display of the images.

If this is the case then it may be that you have a template override for the image field which is not compatible with the core Joomla Media Field. Which template are you using?

As the JCE Media Field only overrides the selection of the image in a Joomla Media Field, it must still provide a URL that is compatbile with the core Joomla Media Field, which it does. If you disable this JCE Media Field override, the URL would be the same.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dagroupinc

We're using Helix Ultimate template. This display problem didn't occur until we updated the site from Joomla 3.x to Joomla 4.x

Ryan

Please post a link to an article on your site where you are seeing this issue.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

dagroupinc

On this page the wavy portion along the bottom of the image displays correctly and has the direct path, short URL {images/assets/hero/va-patient-care.jpg}:

https://www.vasc-alert.com/engaging-patients

On pages where the hero is out of (x,y) position and the wavy bottom section is cropped off, and the URL in Joomla appears like this {images/assets/hero/va-patient-care.jpg#joomlaImage://local-images/assets/hero/va-patient-care.jpg?width=2000&height=526}:

https://www.vasc-alert.com/engaging-patients/access-report-card

I'm unable to edit the URL and if I relink the module to the image it continues to add in the extra info in the string.

The display issue only occurs on hero images with this long string. It wasn't happening in J3.x and the classes applied haven't changed.

Ryan

On pages where the hero is out of (x,y) position and the wavy bottom section is cropped off, and the URL in Joomla appears like this {images/assets/hero/va-patient-care.jpg#joomlaImage://local-images/assets/hero/va-patient-care.jpg?width=2000&height=526}:

Both of these hero images have an identical url, which is set by the module as a css background image. The css style for both is:

background-image: url("/images/assets/hero/va-patient-care.jpg");

 The url of the original image therefore makes no difference to how it is displayed. You can see the image here - https://www.vasc-alert.com/images/assets/hero/va-patient-care.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.