dessy/meta_search — pull request #1 by amorris (2012-01-19 05:19:04+00:00)
Title: sort_link helper should remember url parameters other than those belonging to meta_search

Url parameters unrelated to meta-search should be preserved by the sort_link helper. Without this, any parameters you want to be "sticky" will have to be explicitly passed in to the sort_link helper causing repeated code in views. ex. sort_link @search, :name, params[:sticky_param]

Example of behavior this patch fixes:

1. page is loaded with no meta_search applied
URL = http://localhost:3000?category=widget

2. sort_link generates a link on the page
LINK = http://localhost:3000?search%5Bmeta_sort%5D=some_field.asc

3. User clicks link and page is loaded with the meta search applied but the category=widget url parameter is lost, resulting in unintended consequences