-
-
Notifications
You must be signed in to change notification settings - Fork 227
Milestone
Description
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
none
Issue description
When using assets combiner :
{{ [
'assets/css/vendor.css',
'assets/css/theme.css'
]|theme }}If one of the assets contain a reference to a file with url(...) the reference get corrupted with backslash instead of slash.
This issue was detected on a Windows platform, which may be important given the difference in the use of slashes and backslashes.
Steps to replicate
In the demo theme, change :
<link href="{{ 'assets/css/vendor.css'|theme }}" rel="stylesheet">
<link href="{{ 'assets/css/theme.css'|theme }}" rel="stylesheet">to :
<link href="{{ [
'assets/css/vendor.css',
'assets/css/theme.css'
]|theme }}" rel="stylesheet">Reload site in FrontEnd, the Winter logo ha gone.
The reference to the link in the class definition is change
from : background-image: url('../images/winter.png');
to : background-image: url('../themes\demo\assets/images/winter.png');
What it is expected : background-image: url('../themes/demo/assets/images/winter.png');
Workaround
No response
Metadata
Metadata
Assignees
Labels
No labels