No Code Attached Yet
avatar mariantanase
mariantanase
23 Dec 2025

Steps to reproduce the issue

Based on the 'The 404 That Could: Why Your Joomla Site Deserves a Brilliant Error Page' article, I've tried to customize a 404 page.
However, I noticed some strange behavior in a certain situation that I can't seem to resolve.
I created a custom module as described in the guide, where I also inserted a custom text and an image.
Now, the behavior is as follows:
If I type http://yourdomain.com/thispagedoesnotexist -> the custom page appears correctly and the image is also visible.
If I type http://yourdomain.com/category/thispagedoesnotexist -> the custom error page does not load the image.
The image src is relative and the link ‘Back to homepage’ does not point to the homepage.

Any idea how to solve this issue?

Expected result

Actual result

System information (as much as possible)

Joomla 6.0.1
PHP 8.3.29
Child template from Cassiopeia

Additional comments

avatar mariantanase mariantanase - open - 23 Dec 2025
avatar joomla-cms-bot joomla-cms-bot - change - 23 Dec 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Dec 2025
avatar devprashant19
devprashant19 - comment - 24 Dec 2025

I think this is a path-resolution issue. generally happens when relative URLs are used on a 404 page. Try using absolute urls instead or joomla helpers.
Hope it helps :)

avatar brianteeman
brianteeman - comment - 24 Dec 2025

That is not a correct fix

Add a Comment

Login with GitHub to post a comment