Autocomplete Fix - Drupal Modules
The Problem...
Drupal (version 6.20 as of this writing) still has a longstanding problem with autocomplete fields - the kind in which search results appear in a drop-down list as you type. For the most part autocomplete fields work as-advertised, but in a rare display of Drupal lameness they get confused by the humble slash ( / ) character. This causes everything following the slash to be ignored in the autocomplete query. The reason this happens is because autocomplete sends its query to Drupal as a path component, and the Drupal path system throws away anything following the first slash (even if the slash was encoded, which it isn't anyway).
To get around this issue I've built two Drupal 6 modules that override the behavior of autocomplete fields. The Autocomplete Hack module still submits the search terms through a path parameter, but it specially encodes slashes so they won't confuse the path system. The Autocomplete POST module causes autocomplete fields to submit their contents in a POST header, bypassing the path parameter altogether.
Download
These are proof-of-concept modules and may not work with your particular configuration. Hopefully this issue will be fixed for real in a future version of Drupal, rendering these modules obsolete.
Download Autocomplete Fix Modules (Zipped Tarball, 2.7K)
Installation
To install, first download and decompress the package. Either upload the whole autocomplete_fix folder to your site's modules folder, or just upload the individual module within the autocomplete_fix folder that you want to use. Go to your site's module admin page, enable one of the modules, and you're done. Autocomplete fields will now allow slashes, and behind the scenes they might even work in a smarter way...