The problems is - every request with .js or .css at the end of URI is served by Nginx directly, while it should be sent to Drupal backend for processing if the URI begins with /search. The same issue is with searching for every defined type of static files, like image.jpg, picture.png etc.
Comments
Comment #1
omega8cc commentedThis commit fixes the issue: http://drupalcode.org/sandbox/omega8cc/1111100.git/commit/2d92e92
Comment #2
anarcat commentedcherry-picked. 1.x. 2.x. thanks!