• Categories

    • No categories

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

March 2010
M T W T F S S
« May    
1234567
891011121314
15161718192021
22232425262728
293031