discourse/discourse — pull request #1884 by velesin (2014-01-29 20:00:33+00:00)
Title: refactors Discourse.SearchController

SearchController's select method (allowing to open a link from keyboard, by pressing Enter) gets the url of the post to open from the DOM element's href attribute - what IMO violates the conventions for the controller, which should not touch the DOM (this is the responsibility of views). This PR refactors SearchController to obtain urls directly form the model data (from the search results) instead of rendered DOM.