It works perfectly well in FF, but in IE7 (did not test in IE6 or earlier versions) it automatically prefixes number '20' to searched term, which of course gives no any search result. I noticed that in address bar of FF after you submit term via search block it shows:

http://www.example.com/search/node#keys%20klk, which works correctly. But in IE7 address bar shows:

http://www.example.com/search/node#keys%2020klk

Extra '20' is wrongfully being generated.

Comments

9802008’s picture

I am experiencing the same problem in IE 6. An extra 20 or a %20 is prefixed to the search term. Also the search results are reloaded twice - first time nothing is found, second time search results are found.

nedjo’s picture

I at least attempted to fix this previously; the fix at that time seemed to work. Can you confirm that you are using the 5.x dev version?

yngens’s picture

I confirm I am using dev version.

davidburns’s picture

When using the default search block provided by drupal core, I do not get an extra 20, but I am getting no results found when %20 is present.
If I use the search box provided by Active Search the %20 doesn't appear at all and the search works fine.

ekendra’s picture

in activesearch.js change the function starting on line 29 to:

Drupal.activesearchSubmit = function() {
  var nastyChars = eval("/%20|#/ig");
  $('#edit-keys').attr('value', location.hash.substring(6).replace(nastyChars, ' '));
  // Call the submit event.
  $('#search-form').submit();
  // Actually submit the form.
  $('#search-form')[0].submit();
};

seems to do the trick although I'm sure there's a more elegant solution

ekendra’s picture

in activesearch.js change the function starting on line 29 to:

Drupal.activesearchSubmit = function() {
  var nastyChars = eval("/%20|#/ig");
  $('#edit-keys').attr('value', location.hash.substring(6).replace(nastyChars, ' '));
  // Call the submit event.
  $('#search-form').submit();
  // Actually submit the form.
  $('#search-form')[0].submit();
};

seems to do the trick although I'm sure there's a more elegant solution