you should probably use `h.base_url` here. That will also take care of the parameter encoding.