User tests: Successful: Unsuccessful:
Pull Request for Issue #25286 .
load user.css
create a user.css in the css folder of protostar
generate a 404
page loads user.css
no reference to user.css
none
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Templates (site) |
@franz-wohlkoenig yes - I updated op. created the pr from my phone so easy to mistype
Maybe adding a check if user.css exists before including it?
Updated branch to make drone run
Labels |
Added:
?
|
I have tested this item
user.css is included in 404 error page after applying patch. Thanks.
I have tested this item
With this PR applied, I get a 404 for the user.css when watching network traffic in developer tools of browser. It needs a check if the file exists before including it. This is different to the index.php and the offline.php, where JHtml::_('stylesheet', 'user.css' ...
is used, which does that job for us.
I am a new to these testings, so I might have missed the mark, be patient, but I confirm the user.css is loaded after applying the patch and the site-title class rule I defined as an example is changing the font-size on the 404 error page.
And what if the user.css does not exist, which is the case on a standard Joomla 3.9.x? In this case you get an additional 404.
Understood. I also get a second 404 when user.css is not included.
made a small change - please retest
I have tested this item
I have tested this item
I have tested this item
If user.css is included, the css rules are successfully added to the 404 page.
If user.css is missing, it doesn't generate another 404 error code.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
I think it is by design that the error page doesn’t use JHTML.
For consistency please use file_exists
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-03 13:04:39 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
?
|
guess its for #25286