craft.minimee icon indicating copy to clipboard operation
craft.minimee copied to clipboard

Minimee does not seem to honor https set in site configuration

Open eriweb opened this issue 8 years ago • 3 comments

in general.php we have a snippet like this:

'mysite.com' => array(
 'environmentVariables' => array(
  'baseUrl' => 'https://mysite.com'
));

And in General site settings we set siteUrl to {baseUrl} but minimee does not seem to honor this as we get http:// urls back.

Base URL in the minimee plugin is left blank.

Any advice? Using minimee 0.9.8, craft 2.6.2950

eriweb avatar Nov 30 '16 09:11 eriweb

To clarify, the minified css is served correctly over https, but contains http:// links when the original css contains relative urls ('//foobar.com')

eriweb avatar Nov 30 '16 11:11 eriweb

I have the same problem with https if i specify a cache path and cache URL. The plugin then ignores https and converts relative image urls to absolute urls with http://.

KnutSv avatar Jan 03 '17 14:01 KnutSv

Hi both - can you provide me with an example of how you're using Minimee in Twig?

While there is a config option cssPrependUrl which, if specified to include the SSL protocol, should fix things for you, I'm curious as to the underlying reason why the siteUrl value, if over HTTPS, isn't being passed down correctly.

johndwells avatar Jan 19 '17 05:01 johndwells