Reformat url code