take into account the name of the controller when computing search url