Correctly format the URL