filter the context out of search params in the pagination helpers