Low Search param force_protocol on the form tag doesn't appear to be setting.
Low, thanks for Low Search. Really nice to use.
I believe I have found a bug in the force_protocol param in the form tag. It doesn't seem like the one-off params in mod.low_search.php around line 320 are ever being applied to the creation of the form tag.
In my case, I was on a https page and am forcing it back to http. As a bandaid I applied this:
// --------------------------------------
// Handle the force protocol param
// --------------------------------------
if (array_key_exists('force_protocol', $params)) {
$protocol = ($params['force_protocol'] > 'https' ? 'https://' : 'http://');
$data['action'] = $protocol . $_SERVER['SERVER_NAME'];
}
I don't love it but it will work in the short term. Just wanted to bring this up. I'm on 3.1.5 I believe. I didn't see anything in the changelog after that addressing this.
Thanks!
Doug
Replies
Low 15 Aug 2014 08:27
The force_protocol parameter is meant to target the result page. The search form is submitted via POST to your main index.php file, after which you're redirected to the results page with the search query added to the URI. It's