Redirects while searching on keywords
I have a problem with searching on keywords from the the form tag. It works but i see a white blank page for 1 sec or so when searching on a keyword. It seems that i get redirected many times before actually landing on the result_page param in the form tag. This sometimes results in a 'too many redirects' error in the browser. If i log the network tab with preserve log on it seems that i get redirected to the index page(/) then to results?keywords=test which is a 301 redirect to results/?keywords=test, any idea how i can fix this blink blank page.
Replies
Jacob Nijgh 1 Feb 2017 09:59
Btw, i use EE 3.5.1 and Low Search 5.0.5
Low 1 Feb 2017 10:14
Looks more like an environmental issue. For example, are you forcing trailing slashes in your .htaccess?
Low Search will POST the form (like any other EE form) to the main index page, which processes it and redirects to the search results page as defined in either the add-on settings or form itself. In your case, that'll be
results
. You can try and use a native search form to see if that behavjour happens there, too.Also make sure you've got the 'Redirection type' setting in Debugging & Output set to 'Location'.
Jacob Nijgh 1 Feb 2017 15:06
Thanks, it was the redirection type setting, changed this to location, now it works!