sw!tch wrote: ↑Sun Feb 16, 2020 2:37 am
Khwezi wrote: ↑Sun Feb 16, 2020 2:03 am
@sw!tch you are correct because when i modify this code and remove the (s) i get https: yet the is something i am missing because the filter still will not work
There are probably more places with similar code. If it's also affecting the filters, then I think you will find similar code in the module controller, that controls the filters. Not sure why some theme developers do this, it's really not necessary.
What does the https code snippet you are editing look like?
if (isset($this->request->server['HTTP_HOST']) && isset($this->request->server['REQUEST_URI'])) {
$url = ($this->request->server['HTTPS'] ? 'https://' : 'http://') . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'];
} else {
$url = '';
}
if (isset($this->request->server['HTTP_REFERER'])) {
$referer = $this->request->server['HTTP_REFERER'];
} else {
$referer = '';