fixed a url_helper issue encountered differently in dev, production, test envs