fixed issue with search adding "?" to urls on the page