J3 Issue ?
avatar Giuse69
Giuse69
20 Jun 2019

Steps to reproduce the issue

Go to an invalid link that throws a 404 error

Expected result

user.css should be included

Actual result

just template.css is included but not user.css

System information (as much as possible)

Joomla 3.9.8

Additional comments

avatar Giuse69 Giuse69 - open - 20 Jun 2019
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jun 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jun 2019
avatar Giuse69 Giuse69 - change - 20 Jun 2019
The description was changed
avatar Giuse69 Giuse69 - edited - 20 Jun 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 20 Jun 2019
avatar Quy
Quy - comment - 20 Jun 2019

Cannot reproduce. user.css is in the same folder as template.css.

Make sure it is in the following location:
\templates\protostar\css\user.css

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2019
Status New Information Required
avatar Giuse69
Giuse69 - comment - 20 Jun 2019

Yes, it is. user.css is normally included across the site (also visible in the HTML source of the page) but when I type a wrong URL the source contains

< style>
h1, h2, h3, h4, h5, h6, .site-title {
font-family: 'Open Sans', sans-serif;
}
< /style>
< link href="/templates/protostar/css/template.css" rel="stylesheet" />
< link href="/templates/protostar/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
< style>
.......
}

so only template.css is referenced (the blank after < is added by me otherwise the code is not shown here in the message). You get something else?

avatar Quy
Quy - comment - 20 Jun 2019

From the page source:

<link href="/templates/protostar/css/template.css?31ffb900ec04f4fda475b2d2fcf5e941" rel="stylesheet" />
<link href="/templates/protostar/css/user.css?31ffb900ec04f4fda475b2d2fcf5e941" rel="stylesheet" />

I don't know what you mean by typing the wrong URL.

avatar Giuse69
Giuse69 - comment - 20 Jun 2019

No, sorry, I mean: I explicitly invoke a non existing URL to receive a 404. In that case protostar template uses template.css but not user.css

avatar Quy
Quy - comment - 20 Jun 2019

I understand now. On the 404 error page, user.css is not included.

avatar Quy
Quy - comment - 20 Jun 2019

Why not create a custom 404 error page?
https://docs.joomla.org/Creating_a_Custom_404_Error_Page

avatar Giuse69
Giuse69 - comment - 20 Jun 2019

Yes, it's an option but I think it should be automatically done. Maybe just adding in "templates/protostar/error.php" around line 70 the inclusion of user.css if existing?

avatar Quy
Quy - comment - 20 Jun 2019

It is a generic error page. What kind of custom styling do you need?

avatar Giuse69
Giuse69 - comment - 20 Jun 2019

for example to tune representation of the site logo, that is part of the generic error page

avatar brianteeman
brianteeman - comment - 20 Jun 2019

It's a bug. It should be used

avatar Giuse69
Giuse69 - comment - 20 Jun 2019

thanks

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Jun 2019

Closed as having Pull Request #25289

avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Jun 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-06-21 10:22:57
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 21 Jun 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Jul 2019

Reopened as Pull Request #25289 is closed

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jul 2019
Status Closed New
Closed_Date 2019-06-21 10:22:57
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - reopen - 3 Jul 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jul 2019
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - comment - 3 Jul 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jul 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-07-03 14:03:47
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 3 Jul 2019

Add a Comment

Login with GitHub to post a comment