THELIA Forum

Welcome to the THELIA support and discusssion forum

Offline

#1 Activate https for assets

(04-11-2016 09:57:52)


Good morning,

We are having a few problem with activating https. The url generated for the assets and the url generated for the links are not with the https scheme.

Wondering if we missed some config.

Thanks

Offline


Could you try to change line 95 in core/lib/Thelia/Tools/URL.php:

Replace

if ($host = $this->requestContext->getHost()) {

by

if ($host == $this->requestContext->getHost()) {

CQFDev | Sites, boutiques, modules, développement et intégration pour Thelia 1 et 2

Offline


The variable is actualy being initalized here,
so if I change the = by a ==  I got an undefined variable error which seems logical

Anyway, we managed to resolve this problem by creating a listener and a config variable in database corresponding to the sheme to use and setting it on the kernel request, but I was hoping there was something else.