Canonicalizing the URL before we set canonical url