fixed searching when viewing paginated content.
using a better method to get "current url" when performing searches.