Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
6.2-milestone-2
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Imagine a Webjar containing 2 files: style.css and style2.css.
In style.css, we have "import 'style2.css';"
Pb: the browser will not be able to reach style2.css.
Explanations:
The webjar module generates an URL like this:
/xwiki/bin/webjars/resources/path?value=bootstrap/3.2.0/css/style.css
So when style.css mentions "style2.css", the browser will try to reach:
/xwiki/bin/webjars/resources/style2.css which, of course, will not work.
What we need is to generate URLs like this (without query string):
/xwiki/webjars/bootstrap/3.2.0/css/style.css
Attachments
Issue Links
- duplicates
-
XWIKI-10881 Introduce a proper "webjars" type instead of reusing the "bin" type
- Closed