Search redirects to homepage when using Publisher multilingual plugin
Hi Low
I've hit a bit of a wall with Low Search when using Boldminded's Publisher plugin. I've tried to work with Brian to resolve it but I'm still stuck.
I've purchased the "Publisher Low Search" plugin hoping it would help but it hasn't improved the issue.
When in Chinese "mode" and doing a search on any page of the website using the search in the top right of the site it will redirect to the homepage.
EXAMPLE ENGLISH SEARCH FORM
http://j.mp/1PJKKD3
EXAMPLE CHINESE SEARCH FORM
http://j.mp/1MxoFUt
This is the form template:
{exp:low_search:form form_id="searchForm" collection="pages" search_mode="all" result_page="search/results"}
>
{/exp:low_search:form}
I also noticed that the {absolute_results} tag has stopped working since Publisher was installed. This test site is basically a clone of http://j.mp/1MxoVmy (which works fine) with the addition of multilingual support.
Any advice you could offer would be greatly appreciated.
Replies
Low 23 Nov 2015 13:01
Looks like Publisher changes the base site URL to domain.com/cn, which EE uses as the action="" attribute of the generated <form>-tag.
Therefore, the ACT is not being caught by EE, never triggering the search. I reckon this will happen with a native search tag as well.
Comes down to Publisher altering some stuff, so Brian should know best how to solve it for you. Of course, he can contact me if he so wishes.
GMJ 23 Nov 2015 13:23
Ok. Thanks. Any ideas on why the {absolute_results} tag has stopped working since Publisher was installed?
Low 23 Nov 2015 13:30
LS calls the channel:entries tag behind the scenes, which takes care of the {absolute_results}. You'll have to make sure pagination is enabled (and the {paginate} var pair is present in the tag) in order to make it work.
You can check if the var works in an native channel:entries tag. If the same issue occurs, it's not LS doing.