search form generates correct and shorter URLS