was incorrectly appending extra ? into url

this was causing extra ? to be prepended to search on each page refresh.