plugin-responsive-images icon indicating copy to clipboard operation
plugin-responsive-images copied to clipboard

mod_language image path problem

Open tobajarrat opened this issue 1 year ago • 1 comments

Tried using your plugin and it looks very promising. Thank you for your effort. Unfortunately, The flag-images of the mod_language module are not showing after activating this plugin.

Using "Excluded Directories * media/mod_languages/images" does not change anything here.

The problem is withing the src path - it changes /2024-6/media/mod_languages/images/fr_fr.gif to /2024-6/2024-6/media/mod_languages/images/fr_fr.gif

Using joomla4 on xampp

Thank you for your great work!

tobajarrat avatar Jun 17 '24 11:06 tobajarrat

What is 2024-6 ?

dgrammatiko avatar Jul 26 '24 19:07 dgrammatiko

What is 2024-6 ?

Sorry for my late answer.

"2024-6" is my joomla root path (on localhost). As soon as i turn on [Content - Responsive Images] plugin, the src attribute of the language switcher flag image changes.

When I inspect the page when [Content - Responsive Images] plugin is OFF, i can see:

GET
...localhost/2024-6/media/mod_languages/images/de_de.gif [HTTP/1.1 **200 OK** 2ms]

When I inspect the page when [Content - Responsive Images] plugin is ON, i can see:

GET
...localhost/2024-6/2024-6/media/mod_languages/images/de_de.gif [HTTP/1.1 **302 Found** 369ms]
GET
...localhost/2024-6/de/2024-6/media/mod_languages/images/de_de?format=gif [HTTP/1.1 **404 Not Found** 294ms]

Thank you in advance.

tobajarrat avatar Jan 27 '25 14:01 tobajarrat

You could try removing the $base here: https://github.com/ttc-freebies/plugin-responsive-images/blob/31dea36cf74780678af59de24c4a1e3ef10bae42/src/libraries/Ttc/src/Freebies/Responsive/Helper.php#L191

dgrammatiko avatar Jan 27 '25 15:01 dgrammatiko

I'll investigate further although I never use subfolders for sites because it doesn't represent any real server scenario

dgrammatiko avatar Jan 27 '25 15:01 dgrammatiko

I'll investigate further although I never use subfolders for sites because it doesn't represent any real server scenario

You're right, but i guess it is a common development scenario. Removing the $base seems to have no effect.

I'm wondering why it changes path although .gif is not a supported mime type?

I really appreciate your work!

tobajarrat08 avatar Jan 27 '25 17:01 tobajarrat08

This should be solved with version 4.2.9

If not please reopen this issue.

Thanks

dgrammatiko avatar Mar 26 '25 09:03 dgrammatiko