fixed searching when viewing paginated content.

problem: when viewing content in dashboard that is on a page like ".../?page=5", search queries will be shown on a view attempting to show page 5 and thus not show any content despite content being returned by the ajax call.
fix: using a better method to get "current url" when performing searches.