# Https – echo js ore css

**URL:** <https://forum.getkirby.com/t/https-echo-js-ore-css/7370>\
**Category:** Questions\
**Tags:** v2\
**Created:** [April 30, 2017, 7:00pm UTC](https://forum.getkirby.com/t/https-echo-js-ore-css/7370 "2017-04-30T19:00:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TakioTk](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/takiotk/32/3133_2.png) [@TakioTk](https://forum.getkirby.com/u/TakioTk)\
**Post date:** [April 30, 2017, 7:00pm UTC](https://forum.getkirby.com/t/https-echo-js-ore-css/7370/1 "2017-04-30T19:00:19Z")

</div>

Hello,  
I have a problem using https:  
`c::set('ssl',true);`

but

`<?php echo css('assets/css/somecss.css') ?>`

still generates `"http://url..."`  
Is it better to wright a relative path on my own like:  
`<link rel="stylesheet" href="//url.tld/assets/css/somecss.css">`

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 30, 2017, 7:19pm UTC](https://forum.getkirby.com/t/https-echo-js-ore-css/7370/2 "2017-04-30T19:19:51Z")

</div>

No, that is not necessary. If your website is https, then the CSS helper should output the correct protocol. What you could try is setting the URL in your config as well.

```auto
c::set('url', 'https://domain.com');

```

But this should not be necessary.

The css helper will however only generate the correct protocol if your website is really available under https.

---

<div class="post-metadata">

**Author:** ![TakioTk](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/takiotk/32/3133_2.png) [@TakioTk](https://forum.getkirby.com/u/TakioTk)\
**Post date:** [April 30, 2017, 7:26pm UTC](https://forum.getkirby.com/t/https-echo-js-ore-css/7370/3 "2017-04-30T19:26:33Z")

</div>

> [@texnixe](#):
>
> c::set(‘url’, ‘[https://domain.com](https://domain.com)’);

Thanks again,  
that was the problem : the url was set in my config as http://… even though, it wasn’t necessery! 🙂

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:50pm UTC](https://forum.getkirby.com/t/https-echo-js-ore-css/7370/4 "2025-02-06T16:50:06Z")

</div>

Archived on February 6, 2025, 4:50pm UTC


