Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, 7.2.X, 7.3.X, Master
-
7.3.x, 7.2.x, 7.1.x
-
Committed
-
3
Description
Steps to reproduce
- Add theme.css.fast.load.check.request.parameter=true to portal-ext.properties (in order to be able to use parameter css_fast_load in the url query string);
- Start Liferay Portal
- Deploy the attached classic-theme.war to Liferay Portal;
- Open the home page
Expected behavior
Most of page text is in cursive font due to the use of Allison font.
Current behavior
The page text remains unchanged.
Additional remarks
If the client sets css_fast_load=0 in the url query string (e.g. http://localhost:8080?css_fast_load=0), you will be able to see the text in cursive as expected, because the CSS won't be aggregated and the browser will be responsible to download the fonts correctly. When css_fast_load=1, the AggregatorFilter is called to aggregate the CSS content in a single file, but it ignores external urls, which makes the behavior inconsistent.
Current workaround
The current workaround is to download the font manually and add it to the theme source code and reference the relative path of the font using the $font-import-url variable in _clay_variables.scss.