Adding an external link to the Reason field (badge) fails silently


(Daniela) #1

Repro on Meta:

  1. go to user admin page
  2. click on Edit badges
  3. assign a badge adding an external URL as Reason
    2018-08-28_18-46-16
  4. click Grant
  5. the badge is assigned, the Reason field remains empty

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).