Archive for the 'WordPress' category

Polyglot search fix

While implementing the Polyglot plugin on a WordPress site I was working on, I found a bug related to the search form: the plugin appends “/lang-pref/en/” (or whatever other ISO language code) to the search string (in the URL - when using “pretty permalinks” AKA URL rewriting).

This does not directly affect the first search, but the search field is then filled with “my search string/lang-pref/en”, which is confusing for the visitor.

A quick solution is to filter the search query and remove the said string read full article

Archives

February 2012
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
272829