LPS-39643 - Prevent adding extra characters on creating link to URL