Hello.
I am working on a website hosted by 000webhost and using cloudflare for the ssl certificate.
I'm having a problem with webp images not displaying over https connection.
I found the reason to be that <cms:show k_site_link /> gives http inside <source> tags, even though everywhere else in the code it gives https.
Here is a code snippet to give a better idea:
^This is the generated html code.
While in the php file it is like this:
I don't understand what is causing the <cms:show k_site_link /> to behave like that.
For context, I have hotlink protection in cloudflare turned off.
I am working on a website hosted by 000webhost and using cloudflare for the ssl certificate.
I'm having a problem with webp images not displaying over https connection.
I found the reason to be that <cms:show k_site_link /> gives http inside <source> tags, even though everywhere else in the code it gives https.
Here is a code snippet to give a better idea:
- Code: Select all
<picture>
<source srcset="http://sendi-solar.com//images/solar-power-company.webp" type="image/webp">
<source srcset="http://sendi-solar.com//images/solar-power-company.jpg" type="image/jpeg">
<img id="cover-img" src="https://sendi-solar.com//images/solar-power-company.jpg" alt="" class="img-fluid">
</picture>
^This is the generated html code.
While in the php file it is like this:
- Code: Select all
<picture>
<source srcset="<cms:show k_site_link />images/logo-sendi-solar.webp" type="image/webp">
<source srcset="<cms:show k_site_link />images/logo-sendi-solar.png" type="image/png">
<img src="<cms:show k_site_link />images/logo-sendi-solar.png" alt="Sendi-solar" height="100%" width="200">
</picture>
I don't understand what is causing the <cms:show k_site_link /> to behave like that.
For context, I have hotlink protection in cloudflare turned off.