Correctly format the links