User tests: Successful: Unsuccessful:
Pull Request resolves #46610
Added a <base> tag to the Cassiopeia error.php template header. This ensures that relative assets (like images in custom modules) load correctly when a 404 error occurs on a nested URL.
Go to Administrator > Content > Site Modules
Create a "Custom" module
Set the position to error-404 and assign it to "All Pages"
In the content editor, switch to code view and add an image with a relative path:
for eg: <img src="images/powered_by.png" alt="Test Logo">
Visit http://yourdomain.com/thispagedoesnotexist -> the custom page appears correctly and the image is also visible.
Visit http://yourdomain.com/category/thispagedoesnotexist -> the custom error page does not load the image.
The image fails to load , and the "Home pagee" button links to a non-existent path.
The image loads correctly, and the Home button correctly links to the site root.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End Templates (site) |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-02-27 19:30:20 |
| Closed_By | ⇒ | krishnagandhicode | |
| Labels |
Added:
bug
PR-6.0-dev
|
||
I have tested this item ✅ successfully on 7714af8
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47242.