Don't hard-code the search url

Quick fix for search results if the base url isn't "/".