Thursday, April 11, 2024
1 change · saas-17.2
Resolved issues and error corrections
The Knowledge app now validates links without relying on a browser feature that is only available in newer browser versions. This prevents errors for users on older supported browsers and keeps link handling behavior consistent.
Original PR description
This commit fixes an issue with the CheckURL method in our utils, it wasn't supporting low enough browser versions. The static method canParse from the URL interface is only supported from Firefox 115+, Chrome 120+ and Safari 17+. This results in errors linked to the usage of this method, as it does not exist in lower versions. To fix that, this call is replaced by a try catch. If the URL constructor raises a TypeError, this is expected and the function returns False. => This is the same behavior as the static method version. task-3842970