Hi devs,
In order to fix
http://jira.xwiki.org/browse/XWIKI-13276, I’m proposing:
* Use Case 1: No wiki specified:
$services.webjars.url('org.xwiki.contrib:application-ckeditor-webjar',
'ckeditor.js’)
would generate:
/<context>/webjars/<currentWikiId>/application-ckeditor-webjar/1.4/ckeditor.js
* Use Case 2: Wiki specified:
$services.webjars.url('org.xwiki.contrib:application-ckeditor-webjar',
'ckeditor.js', {'wiki': 'mywiki’)
would generate
/<context>/webjars/mywiki/application-ckeditor-webjar/1.4/ckeditor.js
Generic format:
/<context>/webjars/<wikiId>/path/to/resource
WDYT?
I prefer this over having to deal with domain vs path-based; I also find it more clear.
Thanks
-Vincent