Using Grails 2.1.1 with the resources plugin, I have encountered an issue when incorporating the jstree library which comes with themes configuration:
"themes":{
"theme":"default",
"dots":false,
"icons":true
}
The JavaScript in the library locates the theme relative to its path, leading to a URL like:
/a/js/jsTree/themes/default/styles.css
In my ApplicationResources.groovy file, I specify the tree resources as follows:
tree {
resource url: '/js/jsTree/1.0/_lib/jquery.cookie.js'
resource url: '/js/jsTree/1.0/_lib/jquery.hotkeys.js'
resource url: '/js/jsTree/1.0/jquery.jstree.js'
}
When deploying this setup on our SSL server, Firefox and Safari correctly fetch the styles.css from the static path set by the resources plugin:
/a/static/js/jsTree/themes/default/styles.css
However, Chrome encounters a problem where it attempts to load the new URL over non-SSL after receiving a 302 redirect, resulting in the tree styles not rendering properly or at all.
I am unable to provide a public example of this issue currently. Has anyone else faced a similar situation before?