1

i am currently building a new module that loads joomla articles via ajax. During the final tests I noticed that image links are (relative links) not handled correctly. If an image is added to an article, it will be saved without leading slash. Apparently Joomla adjusts this itself and adds a slash when the article is loaded normally. But not via my Ajax Call:

Stored in the database: ....<img src="images/some-image.jpg">....

Displayed in the browser: ....<img src="/images/some-image.jpg">....

If loaded by my module: ....<img src="images/some-image.jpg">...

This of course leads to the problem that images are not displayed. What do I have to refer to so that Joomla! helps me to correct the paths?

Thanks for your feedback

1 Answer 1

1

This is handled by System - SEF plugin. It will not work with page content added using JavaScript. You'll have to handle this in your code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.