Low Search with secure https pages
Hi Low,
I'm trying to get an https site to work with Low Search. It works perfectly locally and without https.
Form code:
{exp:low_search:form result_page="https://domain/search" force_protocol="https" form_id="search"}
Search
{/exp:low_search:form}
Strict urls are not enforced but as mentioned it's working in test environment ok.
Many thanks.
EE 2.8.1 LS : 3.1.5
Replies
Low 4 Sep 2014 06:54
What exactly isn't working? Is it not submitting to a https page or is the result page not on https?
Media Surgery 4 Sep 2014 07:29
Thanks for quick reply.
It just goes back to the home page and also gives the message you are about to leave a secure page etc..
Thanks.
Media Surgery 4 Sep 2014 07:50
Sorted! Path issue. Apologies for wasted time.
Low 4 Sep 2014 07:57
That was my guess. Glad you got it sorted. :)
David Zachry 29 May 2015 11:39
Just curious what the path issue was. The action in the search form is running over HTTP, but I've updated my system paths to use HTTPS.
Low 29 May 2015 11:41
You probably have to make sure the "URL to the root directory of your site" setting under Admin > General Configuration has https in the URL.
David Zachry 29 May 2015 13:37
Thanks!
I've changed that to protocol relative so that it
So I have this in the General Config:
//www.mydomainname.com
I would try clearing caching, but the General Config change is showing up on other areas of the page.
Any other ideas?
Thanks again for your help!
Low 29 May 2015 14:07
Got any extensions running that use the form_declaration_modify_data or form_declaration_return hooks?
LS uses native functionality to generate the opening form tag, so using a native search form will probably result in the same issue, making it not related to LS...
David Zachry 29 May 2015 14:11
Thanks! I will look in that direction.
That's the likely culprit.
Thanks again!
David Zachry 29 May 2015 14:50
UPDATE: Problem solved
Just to update, this was not an issue with LS.
The site was setting the site_url programmatically and I was able to track it down and update to https.
Thanks again!