When a person clicks on a link, I want to do this:
you need to prepend the actual base url
window.location.href = window.location.href + "?search=" + escape( $("#someId").val());