Why do the plugin resource paths include the localization prefix? I'm using Craft in a multilingual setup with the Smart Map plugin. However, the CSS and JavaScript files are not being linked properly when the site isn't in the main language.

For some reason, the paths to the plugin resources contain the language prefix:

/en/cpresources/smartmap/css/smartmap.css


Is this normal behaviour? How can it be fixed?
Good question... As far as I know, the plugin's resource paths should not include the localization prefix. The resources are being called via PHP in the most direct way possible:

craft()-&gt;templates-&gt;includeJsResource('smartmap/js/smartmap.js');
craft()-&gt;templates-&gt;includeCssResource('smartmap/css/smartmap.css');


I'm not entirely sure, but I suspect this may be a Craft bug. I've reached out to Pixel &amp; Tonic in order to fully diagnose the problem. If the plugin code needs to be corrected, I will implement a fix as soon as we can figure out what's going on.