Page 1 of 1
[SOLVED] Admin: last page visited URL not showing "https" url
Posted: Wed Jan 03, 2018 12:11 pm
by kuochinwu
Hello,
I have a question and not sure if anyone ever experienced. I have forced my entire website to load through https; however I just figured out the "Last Page Visited" url link in Customer Online Report not showing with "https" but instead only "http" link? All the recorded links are with "http"
My site load through https pages completely; however, the "last Page Visited" column not recording correctly with https links but the "Referer" column showing no problem with the https links. Any idea and how to make it showing right?
Thanks,
Paul
Re: Last Page Visted URL not showing "https" url
Posted: Wed Jan 03, 2018 1:37 pm
by imdevlper18
This issue exist on 2.x version and not on 3.x version.
Connect to your server via FTP or cPanel and go to your opencart root directory.
Now go to this path below:
Code: Select all
catalog/controller/common/footer.php
Find this line ( Line no. 61):
Code: Select all
$url = 'http://' . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'];
Replace with:
Code: Select all
$url = ($this->request->server['HTTPS'] ? 'https://' : 'http://') . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'];
Save the file and close it.
Now login into your admin and go to extension - modification page.
Click refresh icon.
It should be okay now.
Re: Last Page Visted URL not showing "https" url
Posted: Wed Jan 03, 2018 2:23 pm
by kuochinwu
Awesome; it works perfectly now. Thank you one million for help!
Paul
Re: Last Page Visted URL not showing "https" url
Posted: Wed Jan 03, 2018 2:24 pm
by imdevlper18
Your Welcome !!
Re: Last Page Visted URL not showing "https" url
Posted: Sat Sep 12, 2020 5:28 pm
by NZSD
Thank you Cartbinder. This fix is still need in 2.03.2
Re: Last Page Visted URL not showing "https" url
Posted: Sat Sep 12, 2020 5:31 pm
by imdevlper18
HI,
Let me know correct version no.
Re: Last Page Visted URL not showing "https" url
Posted: Sat Sep 12, 2020 6:45 pm
by Hop2per
kuochinwu wrote: ↑Wed Jan 03, 2018 12:11 pm
Hello,
I have a question and not sure if anyone ever experienced. I have forced my entire website to load through https; however I just figured out the "Last Page Visited" url link in Customer Online Report not showing with "https" but instead only "http" link? All the recorded links are with "http"
My site load through https pages completely; however, the "last Page Visited" column not recording correctly with https links but the "Referer" column showing no problem with the https links. Any idea and how to make it showing right?
Thanks,
Paul
I am having same problem. Any proper solution ?
Re: Last Page Visted URL not showing "https" url
Posted: Sun Sep 13, 2020 7:20 am
by ADD Creative