Correctly set url after canonicalising