A bug was reported where adding an external link to the Reason field (badge) fails silently. dax provided a reproduction of the issue and suggested that the admin should be warned that the URL is invalid and an error should be thrown. saurabhp confirmed the issue and asked if throwing an error on external links was the desired behavior. After confirmation, saurabhp created a pull request (PR) to fix the issue, which was later merged by zogstrip. The fix will only allow internal links to posts and topics, and will throw an error on external links and plain text.
The admin should be warned that the URL is invalid (is not an internal URL) and clicking on Grant must produce the error Sorry, an error has occurred (btw a specific error is always better to identify where you are wrong).
Hi @dax ,
I have created PR for the same. I just wanted to confirm only links have to be allowed in reason, right? Plain text is also not valid, right?