Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: language (URL) prefix not picked up with Low Search

Status Resolved
Add-on / Version Publisher 1.1.12
Severity Critical
EE Version 2.7.1

Rob Post

Oct 09, 2013

Hi,

I’ve just added Low Search and the Publisher low search extension to my project. I’m using the following tag in the search form:

{exp:low_search:form collection="projects" required="keywords" search_mode="all" result_page="{root_url}search/results”}

I expected Publisher to direct this form action to the results page on: mywebsite.com/

/search/results. But Publisher doesn’t pick-up the language (URL) prefix. Instead Publisher points to: mywebsite.com/search/results.

#1

BoldMinded (Brian)

Rob, try changing the result_page to this:

result_page=”{publisher:current_language_code}/search/results”

That is what works for me locally. You might also get site_url to work instead of root_url. root_url intentionally doesn’t include the language prefix.

#2

Rob Post

Using the {site_url} produces the “The URI you submitted has disallowed characters.” when used inside the low_search tag. Using the {publisher:current_language_code} did the job.

#3

BoldMinded (Brian)

Ah, I suppose the :// in the URL would cause that error.

Login to reply