fixed searching when viewing paginated content.
using a better method to get "current url" when performing searches.
Merge pull request #110 from twoSeats/fix/paginated-searches

fixed searching when viewing paginated content.