Any way to do custom action from clicking an #autocomplete_path option I'm attempting to hack the search_autocomplete module. I inject my own suggestions in the matches portion in order to grab results from external sources. I would like to make it so that when I click one of these external suggestions, instead of filling in the search box, it re-directs the user to this external source. Is it possible to do this?
It is not possible: The purpose of the autocomplete callback is to offer suggestions to autocomplete what the user is entering.
Basing on what entered from the user, the callback needs to return the possible values the user could be writing; it is not supposed to redirect the user to a different page, considering that the user has not selected any of the values returned from the autocomplete callback, and that the callback doesn't know which of the returned values the user selected.