Similar issue as
#765662: clicking on insert link goes to the node instead of inserting the link →
When I change the view the output the html instead of using the views options to output as a link, it works... almost :) I also have to leave out the alt=["name"] to make the link work.
Closed: won't fix
Code