In my myproject/themes/mytheme/layouts folder I have a file - default.htm - that reads like this:
description = "Default" == <?php function onStart() { $this->addCss('/themes/mytheme/assets/css/bootstrap.min.css'); $this->addCss('/themes/mytheme/assets/css/custom.css'); $this->addCss('/themes/mytheme/assets/css/bootstrap-select.min.css'); } ?> == blah blah blah
The problem is that my website is being served up via https while the CSS links generated by $this->addCss() are being added with http (vs https).
$this->addCss()
How can I make it so that the generated links are https instead of http?
$this->addCss() will detect automatically what to use http or https from current scheme.
http
https
scheme
Still, if you face an issue you can tell OctoberCMS to use https using config.
config/cms.php
if any doubts please comment.
1.4m articles
1.4m replys
5 comments
57.0k users