Fix search url generator