Fix insight permalink in HTML notification email
Possibly related to #1787