No Code Attached Yet bug
avatar ReLater
ReLater
16 Apr 2023

From german forum and I could reproduce it.

Steps to reproduce the issue

  • Upload an empty template.min.css to JOOMLA's ROOT.

Expected result

  • This template.min.css is ignored. Not loaded.

Actual result

Frontend AND Backend formatted wrongly.

  • Source code (example backend):

<link href="/template.min.css?..." rel="stylesheet" />

instead of

<link href="/media/templates/administrator/atum/css/template.min.css?..." rel="stylesheet" />

System information (as much as possible)

  • PHP 8.1 (not tested with other versions)
  • J!4.2.9 (not tested with other versions)
  • online LAMP server (not tested locally)
avatar ReLater ReLater - open - 16 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Apr 2023
avatar ReLater ReLater - change - 16 Apr 2023
The description was changed
avatar ReLater ReLater - edited - 16 Apr 2023
avatar ReLater ReLater - change - 16 Apr 2023
The description was changed
avatar ReLater ReLater - edited - 16 Apr 2023
avatar ReLater ReLater - change - 16 Apr 2023
The description was changed
avatar ReLater ReLater - edited - 16 Apr 2023
avatar ReLater ReLater - change - 16 Apr 2023
The description was changed
avatar ReLater ReLater - edited - 16 Apr 2023
avatar richard67 richard67 - change - 16 Apr 2023
Labels Added: bug
avatar richard67 richard67 - labeled - 16 Apr 2023
avatar richard67 richard67 - change - 16 Apr 2023
Title
[4] WAM loads CSS from Joomla ROOT
[4] Web Asset Manager loads CSS from Joomla ROOT
avatar richard67 richard67 - edited - 16 Apr 2023
avatar richard67
richard67 - comment - 16 Apr 2023

Confirmed. I can reproduce this issue with a new installation on a clean, current 4.3-dev branch. I used the command touch template.min.css in a command shell in the root folder on my Linux web server to create the empty file.

avatar richard67 richard67 - change - 16 Apr 2023
Status New Confirmed
avatar richard67
richard67 - comment - 16 Apr 2023

Issue confirmed


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40395.

avatar richard67
richard67 - comment - 16 Apr 2023

Additional info: It really happens only when you have the minified file template.min.css in the Joomla root. If you don't have that file but the unminified template.css in the Joomla root and enable "Debug System" in global configuration, the issue doesn't happen and the unminified file is ignored. But as soon as there is the minified file, the issue happens, also when debug is switched on.

avatar ReLater ReLater - change - 16 Apr 2023
The description was changed
avatar ReLater ReLater - edited - 16 Apr 2023
avatar Fedik
Fedik - comment - 19 Apr 2023

Well, technicaly it is correct, you placed file in /blabla.css you requested for blabla.css you got blabla.css.
But if we do not want to allow it, then please test Dimitris PR #40409

avatar Fedik Fedik - close - 19 Apr 2023
avatar Fedik Fedik - change - 19 Apr 2023
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2023-04-19 07:50:59
Closed_By Fedik

Add a Comment

Login with GitHub to post a comment