Unfortunately I didn't realize that putting the wiki in the query string prevents us from using relative paths in WebJar resource. For instance a CSS file cannot use an image located in the same WebJar using a relative path, if the CSS is loaded from a WebJar installed on a subwiki. We need to find a better solution. On Tue, Dec 8, 2015 at 8:19 PM, Marius Dumitru Florea < [email protected]> wrote:
+1
Thanks, Marius
On Tue, Dec 8, 2015 at 4:34 PM, [email protected] <[email protected]> wrote:
Hi devs,
Seems I forgot a use case when introducing the new webjars URL format in http://jira.xwiki.org/browse/XWIKI-10881 and we need to add the wiki somewhere in the URL to serve some webjar resource located in a different subwiki (this is http://jira.xwiki.org/browse/XWIKI-12884).
I’m proposing this updated wrbjars URL format (updated from http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration#HUR... ):
http://<server>/<context path>/webjars/<path/to/resource>[?version=<version>&evaluate=true|false&wiki=<wiki name>]
Specifically I’ve added the optional wiki query string parameter. This means also updating the url() Script Service API to use that new parameter when the resource is not on the current wiki.
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs